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:
commit
bbaff89ceb
@ -263,7 +263,7 @@ let
|
|||||||
}
|
}
|
||||||
(mkIf (config.preStart != "")
|
(mkIf (config.preStart != "")
|
||||||
{ serviceConfig.ExecStartPre =
|
{ serviceConfig.ExecStartPre =
|
||||||
makeJobScript "${name}-pre-start" config.preStart;
|
[ (makeJobScript "${name}-pre-start" config.preStart) ];
|
||||||
})
|
})
|
||||||
(mkIf (config.script != "")
|
(mkIf (config.script != "")
|
||||||
{ serviceConfig.ExecStart =
|
{ serviceConfig.ExecStart =
|
||||||
@ -271,7 +271,7 @@ let
|
|||||||
})
|
})
|
||||||
(mkIf (config.postStart != "")
|
(mkIf (config.postStart != "")
|
||||||
{ serviceConfig.ExecStartPost =
|
{ serviceConfig.ExecStartPost =
|
||||||
makeJobScript "${name}-post-start" config.postStart;
|
[ (makeJobScript "${name}-post-start" config.postStart) ];
|
||||||
})
|
})
|
||||||
(mkIf (config.reload != "")
|
(mkIf (config.reload != "")
|
||||||
{ serviceConfig.ExecReload =
|
{ serviceConfig.ExecReload =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user