forked from mirrors/nixpkgs
upstart.nix: Treat "daemon" as "forking"
This commit is contained in:
parent
6705358ede
commit
23390147ea
|
@ -90,7 +90,7 @@ let
|
|||
// optionalAttrs (job.postStop != "")
|
||||
{ ExecStopPost = postStopScript; }
|
||||
// (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
|
||||
throw "invalid daemon type `${job.daemonType}'")
|
||||
// optionalAttrs (!job.task && job.respawn)
|
||||
|
|
Loading…
Reference in a new issue