Merge pull request #109976 from hercules-ci/systemd-allow-preStart-with-ExecStartPre

nixos/systemd: allow preStart with other ExecStartPre cmdlines
This commit is contained in:
Robert Hensing 2021-01-22 10:18:11 +01:00 committed by GitHub
commit bbaff89ceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -263,7 +263,7 @@ let
}
(mkIf (config.preStart != "")
{ serviceConfig.ExecStartPre =
makeJobScript "${name}-pre-start" config.preStart;
[ (makeJobScript "${name}-pre-start" config.preStart) ];
})
(mkIf (config.script != "")
{ serviceConfig.ExecStart =
@ -271,7 +271,7 @@ let
})
(mkIf (config.postStart != "")
{ serviceConfig.ExecStartPost =
makeJobScript "${name}-post-start" config.postStart;
[ (makeJobScript "${name}-post-start" config.postStart) ];
})
(mkIf (config.reload != "")
{ serviceConfig.ExecReload =