summarylogtreecommitdiffstats
path: root/softethervpn-server.service
diff options
context:
space:
mode:
authorJonathan Liu2016-06-06 21:28:36 +1000
committerJonathan Liu2016-06-06 21:29:02 +1000
commitb285baba68e2d38ee554ae5c20afc9f0a49bf499 (patch)
tree9407f11f151632ab4cd7ac36bc9fa59e2812fd89 /softethervpn-server.service
parent1d3838e1f3e8f1a5eeec53080d1bdf7c2a007acd (diff)
downloadaur-b285baba68e2d38ee554ae5c20afc9f0a49bf499.tar.gz
Update to v4.20_9608-2
Diffstat (limited to 'softethervpn-server.service')
-rw-r--r--softethervpn-server.service12
1 files changed, 10 insertions, 2 deletions
diff --git a/softethervpn-server.service b/softethervpn-server.service
index 50984e282184..87706aad7792 100644
--- a/softethervpn-server.service
+++ b/softethervpn-server.service
@@ -1,11 +1,19 @@
[Unit]
-Description=SoftEther VPN Server daemon
+Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/vpnserver start
-ExecReload=/usr/bin/vpnserver stop
+ExecStop=/usr/bin/vpnserver stop
+Restart=on-failure
+
+# Hardening
+PrivateTmp=yes
+ProtectHome=yes
+ProtectSystem=full
+ReadOnlyDirectories=/
+ReadWriteDirectories=-/usr/lib/softethervpn/vpnserver
[Install]
WantedBy=multi-user.target