* Emit "expect daemon" for the mountall task. Otherwise it may get a
USR1 signal before it has forked into the background (because it will be in the start/running state immediately). svn path=/nixos/trunk/; revision=33288
This commit is contained in:
parent
0d67d95f32
commit
d9e28560d1
@ -116,13 +116,11 @@ let
|
||||
end script
|
||||
''}
|
||||
|
||||
${optionalString (!job.task) (
|
||||
if job.daemonType == "fork" then "expect fork" else
|
||||
if job.daemonType == "daemon" then "expect daemon" else
|
||||
if job.daemonType == "stop" then "expect stop" else
|
||||
if job.daemonType == "none" then "" else
|
||||
throw "invalid daemon type `${job.daemonType}'"
|
||||
)}
|
||||
${if job.daemonType == "fork" then "expect fork" else
|
||||
if job.daemonType == "daemon" then "expect daemon" else
|
||||
if job.daemonType == "stop" then "expect stop" else
|
||||
if job.daemonType == "none" then "" else
|
||||
throw "invalid daemon type `${job.daemonType}'"}
|
||||
|
||||
${optionalString (job.setuid != "") ''
|
||||
setuid ${job.setuid}
|
||||
|
Loading…
Reference in New Issue
Block a user