Skip to content

Commit b09d036

Browse files
FPtjeglobin
authored andcommittedJul 17, 2017
Strongswan after network-online instead of network
The systemd service file shipped with strongswan has strongswan started after `network-online`. It turns out that this is for good reason: failure to connect on boot otherwise. See this thread on the mailing list, which my colleague initiated after finding that our NixOS strongswan config wouldn't connect on boot: https://lists.strongswan.org/pipermail/users/2017-January/010359.html Tested on a local config (which has the strongswan service config overridden).
1 parent c4783a9 commit b09d036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/networking/strongswan.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ in
120120
wantedBy = [ "multi-user.target" ];
121121
path = with pkgs; [ kmod iproute iptables utillinux ]; # XXX Linux
122122
wants = [ "keys.target" ];
123-
after = [ "network.target" "keys.target" ];
123+
after = [ "network-online.target" "keys.target" ];
124124
environment = {
125125
STRONGSWAN_CONF = strongswanConf { inherit setup connections ca secrets; };
126126
};

0 commit comments

Comments
 (0)