1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-07 02:00:41 +03:00

Fix systemd scripts.

Makefile installation directory is /usr.
Adjusted systemd scripts to correct directory from /opt to /usr.
Allows systemd scripts to work correctly.
This commit is contained in:
Peter Geis 2018-01-03 11:05:10 -05:00 committed by GitHub
parent 21b778551f
commit 9fc6f634c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,13 @@
[Unit] [Unit]
Description=SoftEther VPN Server Description=SoftEther VPN Server
After=network.target auditd.service After=network.target auditd.service
ConditionPathExists=!/opt/vpnserver/do_not_run ConditionPathExists=!/usr/vpnserver/do_not_run
[Service] [Service]
Type=forking Type=forking
EnvironmentFile=-/opt/vpnserver EnvironmentFile=-/usr/vpnserver
ExecStart=/opt/vpnserver/vpnserver start ExecStart=/usr/vpnserver/vpnserver start
ExecStop=/opt/vpnserver/vpnserver stop ExecStop=/usr/vpnserver/vpnserver stop
KillMode=process KillMode=process
Restart=on-failure Restart=on-failure
@ -16,7 +16,7 @@ PrivateTmp=yes
ProtectHome=yes ProtectHome=yes
ProtectSystem=full ProtectSystem=full
ReadOnlyDirectories=/ ReadOnlyDirectories=/
ReadWriteDirectories=-/opt/vpnserver ReadWriteDirectories=-/usr/vpnserver
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID
[Install] [Install]