init: Depend on network-online.target instead of network.target in systemd units
This makes sure the network is "up" before connections are loaded/initiated. Fixes #2205.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
||||||
After=network.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
|
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
|
||||||
After=syslog.target network.target
|
After=syslog.target network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||||
|
|||||||
Reference in New Issue
Block a user