mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-04 15:29:52 +03:00
Merge pull request #2056 from nynauy/nynauy-systemd-patch
Correct and simplify systemd service files
This commit is contained in:
commit
e475d70c0b
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnbridge
|
ExecStart=@DIR@/softether/vpnbridge/vpnbridge execsvc
|
||||||
ExecStart=@DIR@/softether/vpnbridge/vpnbridge start
|
|
||||||
ExecStop=@DIR@/softether/vpnbridge/vpnbridge stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
@ -4,11 +4,8 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
EnvironmentFile=-@DIR@/softether/vpnclient
|
ExecStart=@DIR@/softether/vpnclient/vpnclient execsvc
|
||||||
ExecStart=@DIR@/softether/vpnclient/vpnclient start
|
|
||||||
ExecStop=@DIR@/softether/vpnclient/vpnclient stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
@ -4,12 +4,9 @@ After=network.target auditd.service
|
|||||||
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
ConditionPathExists=!@DIR@/softether/vpnserver/do_not_run
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=exec
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
EnvironmentFile=-@DIR@/softether/vpnserver
|
ExecStart=@DIR@/softether/vpnserver/vpnserver execsvc
|
||||||
ExecStart=@DIR@/softether/vpnserver/vpnserver start
|
|
||||||
ExecStop=@DIR@/softether/vpnserver/vpnserver stop
|
|
||||||
KillMode=process
|
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
# Hardening
|
# Hardening
|
||||||
|
Loading…
Reference in New Issue
Block a user