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:00:08 -05:00 committed by GitHub
parent bed99f9a56
commit 53bf738aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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