summaryrefslogtreecommitdiff
path: root/usr/lib/systemd/system/anytun-controld@.service
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2016-07-08 02:42:49 +0200
committerChristian Pointner <equinox@anytun.org>2016-07-08 02:42:49 +0200
commita41392cd588a9bd863267638c60d944e157acf02 (patch)
tree97e6b2bd241bd42b988e68a946a03cc6865387d1 /usr/lib/systemd/system/anytun-controld@.service
parentuse exec @ launcher, also install control daemon systemd unit (diff)
anytun-control vs anytun-controld
Diffstat (limited to 'usr/lib/systemd/system/anytun-controld@.service')
-rw-r--r--usr/lib/systemd/system/anytun-controld@.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/lib/systemd/system/anytun-controld@.service b/usr/lib/systemd/system/anytun-controld@.service
new file mode 100644
index 0000000..675dbcf
--- /dev/null
+++ b/usr/lib/systemd/system/anytun-controld@.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=secure anycast tunneling config daemon for %i
+PartOf=anytun.service
+Requires=anytun@%i.service
+After=anytun@%i.service
+Documentation=man:anytun-controld(8)
+
+[Service]
+Type=simple
+PIDFile=/run/anytun-controld/%i.pid
+Environment="NAME=%i" "DAEMONOPTS=-D -L stdout:3 --username anytun"
+ExecStart=/usr/local/lib/anytun-launcher configd
+Restart=on-failure
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectSystem=full
+ProtectHome=yes
+
+[Install]
+WantedBy=multi-user.target
+Also=anytun@%i.service