upstart.nix: Treat "daemon" as "forking"
This commit is contained in:
parent
6705358ede
commit
23390147ea
@ -90,7 +90,7 @@ let
|
|||||||
// optionalAttrs (job.postStop != "")
|
// optionalAttrs (job.postStop != "")
|
||||||
{ ExecStopPost = postStopScript; }
|
{ ExecStopPost = postStopScript; }
|
||||||
// (if job.script == "" && job.exec == "" then { Type = "oneshot"; RemainAfterExit = true; } else
|
// (if job.script == "" && job.exec == "" then { Type = "oneshot"; RemainAfterExit = true; } else
|
||||||
if job.daemonType == "fork" then { Type = "forking"; GuessMainPID = true; } else
|
if job.daemonType == "fork" || job.daemonType == "daemon" then { Type = "forking"; GuessMainPID = true; } else
|
||||||
if job.daemonType == "none" then { } else
|
if job.daemonType == "none" then { } else
|
||||||
throw "invalid daemon type `${job.daemonType}'")
|
throw "invalid daemon type `${job.daemonType}'")
|
||||||
// optionalAttrs (!job.task && job.respawn)
|
// optionalAttrs (!job.task && job.respawn)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user