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:
parent
68d97ac541
commit
262bff8bd0
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using swanctl
|
||||
After=network.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
|
||||
After=syslog.target network.target
|
||||
After=syslog.target network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||
|
|
Loading…
Reference in New Issue