git.iko.soy/typeable/nixpkgs
on master help sign in
libreswan service: make EnvironmentFile optional (#22591)

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.

commita5e041ac085f8b4d3aec2f68ad8fd3e96becd108 authorafranchuk <alex.franchuk@gmail.com> dateThu 9 Feb 2017, 18:53 (10 years ago) parent96d0750
1 file changed+1−1
nixos/modules/services/networking/libreswan.nix+1−1
nixos/modules/services/networking/libreswan.nix+1−1
@@ -102,7 +102,7 @@ in
102102 serviceConfig = {
103103 Type = "simple";
104104 Restart = "always";
105− EnvironmentFile = "${pkgs.libreswan}/etc/sysconfig/pluto";
105+ EnvironmentFile = "-${pkgs.libreswan}/etc/sysconfig/pluto";
106106 ExecStartPre = [
107107 "${libexec}/addconn --config ${configFile} --checkconfig"
108108 "${libexec}/_stackmanager start"