mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-07 08:14:58 +03:00
CMake: install systemd configuration files
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
[Unit]
|
||||
Description=SoftEther VPN Server
|
||||
After=network.target auditd.service
|
||||
ConditionPathExists=!/opt/vpnserver/do_not_run
|
||||
ConditionPathExists=![DIRECTORY]/do_not_run
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=-/opt/vpnserver
|
||||
ExecStart=/opt/vpnserver/vpnserver start
|
||||
ExecStop=/opt/vpnserver/vpnserver stop
|
||||
EnvironmentFile=-[DIRECTORY]
|
||||
ExecStart=[BINARY] start
|
||||
ExecStop=[BINARY] stop
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
|
||||
@ -16,10 +16,8 @@ PrivateTmp=yes
|
||||
ProtectHome=yes
|
||||
ProtectSystem=full
|
||||
ReadOnlyDirectories=/
|
||||
ReadWriteDirectories=-/opt/vpnserver
|
||||
ReadWriteDirectories=-[DIRECTORY]
|
||||
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_BROADCAST CAP_NET_RAW CAP_SYS_NICE CAP_SYS_ADMIN CAP_SETUID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user