8a4566ce |
[Unit] |
3341a98c |
Description=OpenVPN service for %I |
8b42c197 |
After=syslog.target network-online.target
Wants=network-online.target |
8a4566ce |
Documentation=man:openvpn(8) |
8b42c197 |
Documentation=https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage |
8a4566ce |
Documentation=https://community.openvpn.net/openvpn/wiki/HOWTO
[Service] |
c5931897 |
Type=notify |
8a4566ce |
PrivateTmp=true |
8b42c197 |
WorkingDirectory=/etc/openvpn/server |
ca5b4c2a |
ExecStart=@sbindir@/openvpn --status %t/openvpn-server/status-%i.log --status-version 2 --suppress-timestamps --config %i.conf |
a564781c |
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_DAC_OVERRIDE CAP_AUDIT_WRITE |
8a4566ce |
LimitNPROC=10
DeviceAllow=/dev/null rw
DeviceAllow=/dev/net/tun rw |
76096c60 |
ProtectSystem=true
ProtectHome=true |
29446a18 |
KillMode=process |
a4686e99 |
RestartSec=5s
Restart=on-failure |
8a4566ce |
[Install]
WantedBy=multi-user.target |