mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-12 11:21:56 +00:00
Run dsvpn and mlvpn after network online
This commit is contained in:
parent
fd11069012
commit
da1a6c3560
3 changed files with 3 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Dead Simple VPN - Server
|
Description=Dead Simple VPN - Server
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/sbin/dsvpn server /etc/dsvpn/dsvpn.key auto 65011 dsvpn0 10.255.251.1 10.255.251.2
|
ExecStart=/usr/local/sbin/dsvpn server /etc/dsvpn/dsvpn.key auto 65011 dsvpn0 10.255.251.1 10.255.251.2
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Dead Simple VPN - Server on %I
|
Description=Dead Simple VPN - Server on %I
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/dsvpn-run /etc/dsvpn/%i
|
ExecStart=/usr/local/bin/dsvpn-run /etc/dsvpn/%i
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
Description=MLVPN connection to %i
|
Description=MLVPN connection to %i
|
||||||
PartOf=mlvpn.service
|
PartOf=mlvpn.service
|
||||||
ReloadPropagatedFrom=mlvpn.service
|
ReloadPropagatedFrom=mlvpn.service
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|
Loading…
Reference in a new issue