New upstream version 0.3.6
[anytun.git] / usr / lib / systemd / system / anytun-controld@.service
diff --git a/usr/lib/systemd/system/anytun-controld@.service b/usr/lib/systemd/system/anytun-controld@.service
new file mode 100644 (file)
index 0000000..87f7294
--- /dev/null
@@ -0,0 +1,19 @@
+[Unit]
+Description=secure anycast tunneling config daemon for %i
+PartOf=anytun.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