3
0
Fork 0
forked from mirrors/nixpkgs

upstart.nix: Treat "daemon" as "forking"

This commit is contained in:
Eelco Dolstra 2012-10-26 16:21:01 +02:00
parent 6705358ede
commit 23390147ea

View file

@ -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)