Skip to content

Commit

Permalink
Merge pull request SoftEtherVPN#2056 from nynauy/nynauy-systemd-patch
Browse files Browse the repository at this point in the history
Correct and simplify systemd service files
  • Loading branch information
chipitsine authored Sep 24, 2024
2 parents e94240d + 023eb34 commit e475d70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions systemd/softether-vpnbridge.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ After=network.target auditd.service
ConditionPathExists=!@DIR@/softether/vpnbridge/do_not_run

[Service]
Type=forking
EnvironmentFile=-@DIR@/softether/vpnbridge
ExecStart=@DIR@/softether/vpnbridge/vpnbridge start
ExecStop=@DIR@/softether/vpnbridge/vpnbridge stop
KillMode=process
Type=exec
ExecStart=@DIR@/softether/vpnbridge/vpnbridge execsvc
Restart=on-failure

# Hardening
Expand Down
7 changes: 2 additions & 5 deletions systemd/softether-vpnclient.service
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ After=network.target auditd.service
ConditionPathExists=!@DIR@/softether/vpnclient/do_not_run

[Service]
Type=forking
EnvironmentFile=-@DIR@/softether/vpnclient
ExecStart=@DIR@/softether/vpnclient/vpnclient start
ExecStop=@DIR@/softether/vpnclient/vpnclient stop
KillMode=process
Type=exec
ExecStart=@DIR@/softether/vpnclient/vpnclient execsvc
Restart=on-failure

# Hardening
Expand Down
7 changes: 2 additions & 5 deletions systemd/softether-vpnserver.service
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e475d70

Please sign in to comment.