diff options
author | Christian Pointner <equinox@anytun.org> | 2016-07-07 22:48:58 +0200 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2016-07-07 22:48:58 +0200 |
commit | 2c3c2955a29135ecc2a7920c9816bc8ccd0f9086 (patch) | |
tree | 34c537ad3da97a302bd41362c4e8179879ea8fcb /usr/lib | |
parent | added some privilege limitations to sample systemd services (diff) |
streamlined systemd integration/installation
Diffstat (limited to 'usr/lib')
-rw-r--r-- | usr/lib/systemd/system/anytun-control@.service | 4 | ||||
-rw-r--r-- | usr/lib/systemd/system/anytun@.service | 4 | ||||
-rw-r--r-- | usr/lib/tmpfiles.d/anytun.conf | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/usr/lib/systemd/system/anytun-control@.service b/usr/lib/systemd/system/anytun-control@.service index b2e6a2c..4fb3ba7 100644 --- a/usr/lib/systemd/system/anytun-control@.service +++ b/usr/lib/systemd/system/anytun-control@.service @@ -1,5 +1,5 @@ [Unit] -Description=AnyTun Server Config Control Daemon +Description=secure anycast tunneling config daemon After=syslog.target network.target Requires=anytun@%i.service @@ -7,7 +7,7 @@ Requires=anytun@%i.service Type=simple PIDFile=/run/anytun-controld/%i.pid Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3" -ExecStart=/usr/bin/anytun-launcher.sh configd +ExecStart=/usr/local/bin/anytun-launcher.sh configd Restart=on-failure PrivateTmp=yes PrivateDevices=yes diff --git a/usr/lib/systemd/system/anytun@.service b/usr/lib/systemd/system/anytun@.service index b28433b..176816b 100644 --- a/usr/lib/systemd/system/anytun@.service +++ b/usr/lib/systemd/system/anytun@.service @@ -1,12 +1,12 @@ [Unit] -Description=AnyTun secure anycast tunneling +Description=secure anycast tunneling daemon After=syslog.target network.target [Service] Type=simple PIDFile=/run/anytun/%i.pid Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3" -ExecStart=/usr/bin/anytun-launcher.sh vpn +ExecStart=/usr/local/bin/anytun-launcher.sh vpn Restart=on-failure PrivateTmp=yes PrivateDevices=yes diff --git a/usr/lib/tmpfiles.d/anytun.conf b/usr/lib/tmpfiles.d/anytun.conf new file mode 100644 index 0000000..9fb1215 --- /dev/null +++ b/usr/lib/tmpfiles.d/anytun.conf @@ -0,0 +1,2 @@ +d /run/anytun-controld 0700 anytun anytun - +d /run/anytun 0700 anytun anytun - |