mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 01:19:52 +03:00
Systemd configuration files
Expects vpnserver/vpnclient/vpnbridge to be in /opt. Having a file do_not_run within these directories inhibits launch of a respective module.
This commit is contained in:
parent
ff49706373
commit
0ec6ffcb73
17
systemd/softether-vpnbridge.service
Normal file
17
systemd/softether-vpnbridge.service
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=SoftEther VPN Bridge
|
||||||
|
After=network.target auditd.service
|
||||||
|
ConditionPathExists=!/opt/vpnbridge/do_not_run
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/opt/vpnbridge/vpnbridge start
|
||||||
|
ExecStop=/opt/vpnbridge/vpnbridge stop
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
Alias=softether-vpnserver.service
|
||||||
|
|
||||||
|
|
18
systemd/softether-vpnclient.service
Normal file
18
systemd/softether-vpnclient.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=SoftEther VPN Client
|
||||||
|
After=network.target auditd.service
|
||||||
|
ConditionPathExists=!/opt/vpnclient/do_not_run
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
EnvironmentFile=-/opt/vpnclient
|
||||||
|
ExecStart=/opt/vpnclient/vpnclient start
|
||||||
|
ExecStop=/opt/vpnclient/vpnclient stop
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
Alias=softether-vpnclient.service
|
||||||
|
|
||||||
|
|
18
systemd/softether-vpnserver.service
Normal file
18
systemd/softether-vpnserver.service
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=SoftEther VPN Server
|
||||||
|
After=network.target auditd.service
|
||||||
|
ConditionPathExists=!/opt/vpnserver/do_not_run
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
EnvironmentFile=-/opt/vpnserver
|
||||||
|
ExecStart=/opt/vpnserver/vpnserver start
|
||||||
|
ExecStop=/opt/vpnserver/vpnserver stop
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
Alias=softether-vpnserver.service
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user