From 53bf738aae0b73c1743412d8d573c5d0331de8ed Mon Sep 17 00:00:00 2001 From: Peter Geis Date: Wed, 3 Jan 2018 11:00:08 -0500 Subject: [PATCH] Fix systemd scripts. Makefile installation directory is /usr. Adjusted systemd scripts to correct directory from /opt to /usr. Allows systemd scripts to work correctly. --- systemd/softether-vpnbridge.service | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/systemd/softether-vpnbridge.service b/systemd/softether-vpnbridge.service index 2f508820..4221b345 100644 --- a/systemd/softether-vpnbridge.service +++ b/systemd/softether-vpnbridge.service @@ -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]