diff --git a/systemd/softether-vpnclient.service b/systemd/softether-vpnclient.service index 1e9dbd0e..8d435af3 100644 --- a/systemd/softether-vpnclient.service +++ b/systemd/softether-vpnclient.service @@ -1,13 +1,13 @@ [Unit] Description=SoftEther VPN Client After=network.target auditd.service -ConditionPathExists=!/opt/vpnclient/do_not_run +ConditionPathExists=!/usr/vpnclient/do_not_run [Service] Type=forking -EnvironmentFile=-/opt/vpnclient -ExecStart=/opt/vpnclient/vpnclient start -ExecStop=/opt/vpnclient/vpnclient stop +EnvironmentFile=-/usr/vpnclient +ExecStart=/usr/vpnclient/vpnclient start +ExecStop=/usr/vpnclient/vpnclient stop KillMode=process Restart=on-failure @@ -16,7 +16,7 @@ PrivateTmp=yes ProtectHome=yes ProtectSystem=full ReadOnlyDirectories=/ -ReadWriteDirectories=-/opt/vpnclient +ReadWriteDirectories=-/usr/vpnclient CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID [Install]