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.
This commit is contained in:
parent
96d07508bf
commit
a5e041ac08
@ -102,7 +102,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
EnvironmentFile = "${pkgs.libreswan}/etc/sysconfig/pluto";
|
EnvironmentFile = "-${pkgs.libreswan}/etc/sysconfig/pluto";
|
||||||
ExecStartPre = [
|
ExecStartPre = [
|
||||||
"${libexec}/addconn --config ${configFile} --checkconfig"
|
"${libexec}/addconn --config ${configFile} --checkconfig"
|
||||||
"${libexec}/_stackmanager start"
|
"${libexec}/_stackmanager start"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user