init: Make sure basic networking is up in systemd unit
authorTobias Brunner <tobias@strongswan.org>
Fri, 13 Nov 2015 09:20:11 +0000 (10:20 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 13 Nov 2015 09:20:11 +0000 (10:20 +0100)
Connections with auto=route might otherwise not work.

References #1188.

init/systemd/strongswan.service.in

index 608078b..49c1cd0 100644 (file)
@@ -1,6 +1,6 @@
 [Unit]
 Description=strongSwan IPsec IKEv1/IKEv2 daemon using ipsec.conf
-After=syslog.target
+After=syslog.target network.target
 
 [Service]
 ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork