summaryrefslogtreecommitdiff
path: root/usr/lib/systemd/system
diff options
context:
space:
mode:
authorBernhard Tittelbach <service-anytun@tittelbach.org>2015-01-16 00:13:27 +0000
committerBernhard Tittelbach <service-anytun@tittelbach.org>2015-01-16 00:13:27 +0000
commit3de5d986dc5cebf31287d1c41388a1004976df7d (patch)
treed3acbf5aaf350354fd11ca833c85ae2b315f671b /usr/lib/systemd/system
parentversion output now includes compiler version (diff)
systemd support (--with-systemd) (config/install script untested)
Diffstat (limited to 'usr/lib/systemd/system')
-rw-r--r--usr/lib/systemd/system/anytun-control@.service13
-rw-r--r--usr/lib/systemd/system/anytun@.service12
2 files changed, 25 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/anytun-control@.service b/usr/lib/systemd/system/anytun-control@.service
new file mode 100644
index 0000000..ec857e9
--- /dev/null
+++ b/usr/lib/systemd/system/anytun-control@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=AnyTun Server Config Control Daemon
+After=syslog.target network.target
+Requires=anytun@%i.service
+
+[Service]
+Type=simple
+PIDFile=/run/anytun-controld/%i.pid
+Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3"
+ExecStart=/usr/bin/anytun-launcher.sh configd
+
+[Install]
+WantedBy=multi-user.target
diff --git a/usr/lib/systemd/system/anytun@.service b/usr/lib/systemd/system/anytun@.service
new file mode 100644
index 0000000..2b7fa72
--- /dev/null
+++ b/usr/lib/systemd/system/anytun@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=AnyTun secure anycast tunneling
+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
+
+[Install]
+WantedBy=multi-user.target