summarylogtreecommitdiffstats
path: root/popura.service
diff options
context:
space:
mode:
authorrany2020-10-29 16:16:02 +0200
committerrany2020-10-29 16:16:02 +0200
commit8287cd120842a20897f2e3f7523c775229822a49 (patch)
tree01c509c239f9c1a5770f5e2d7aca568a4f5f7f38 /popura.service
parent5e7024ba94e304e2b23bf6c4bf49349e15870df7 (diff)
downloadaur-8287cd120842a20897f2e3f7523c775229822a49.tar.gz
initial version
Diffstat (limited to 'popura.service')
-rw-r--r--popura.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/popura.service b/popura.service
new file mode 100644
index 000000000000..c793acf3c47e
--- /dev/null
+++ b/popura.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=popura
+Wants=network.target
+Wants=popura-default-config.service
+After=network.target
+After=popura-default-config.service
+
+[Service]
+Group=popura
+ProtectHome=true
+ProtectSystem=true
+SyslogIdentifier=popura
+CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
+ExecStartPre=+-/sbin/modprobe tun
+ExecStart=/usr/bin/popura -useconffile /etc/popura.conf
+ExecReload=/bin/kill -HUP $MAINPID
+Restart=always
+TimeoutStopSec=5
+
+[Install]
+WantedBy=multi-user.target