mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-10 17:54:58 +03:00
Correct and simplify systemd service files
Remove unnecessary wrappers and change to start services directly. Also remove misused "EnvironmentFile" and unrecommended "KillMode=process".
This commit is contained in:
@ -4,12 +4,9 @@ After=network.target auditd.service
|
||||
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Type=exec
|
||||
TasksMax=infinity
|
||||
EnvironmentFile=-@DIR@/softether/vpnserver
|
||||
ExecStart=@DIR@/softether/vpnserver/vpnserver start
|
||||
ExecStop=@DIR@/softether/vpnserver/vpnserver stop
|
||||
KillMode=process
|
||||
ExecStart=@DIR@/softether/vpnserver/vpnserver execsvc
|
||||
Restart=on-failure
|
||||
|
||||
# Hardening
|
||||
|
Reference in New Issue
Block a user