Skip to content

Commit

Permalink
libreswan service: make EnvironmentFile optional (#22591)
Browse files Browse the repository at this point in the history
Recent versions of libreswan seem to omit this file, but it may be added/changed in the future. It is silly to have the service fail because a file is missing that only enriches the environment.
  • Loading branch information
afranchuk authored and fpletz committed Feb 9, 2017
1 parent 96d0750 commit a5e041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/libreswan.nix
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ in
serviceConfig = {
Type = "simple";
Restart = "always";
EnvironmentFile = "${pkgs.libreswan}/etc/sysconfig/pluto";
EnvironmentFile = "-${pkgs.libreswan}/etc/sysconfig/pluto";
ExecStartPre = [
"${libexec}/addconn --config ${configFile} --checkconfig"
"${libexec}/_stackmanager start"
Expand Down

0 comments on commit a5e041a

Please sign in to comment.