Processes spawned by initscripts are forcibly killed if delayed
Bug #759568 reported by
Alkis Georgopoulos
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: upstart
Some LTSP initscript called ntpdate in the background like that:
(ntpdate $SERVER) &
If ntpdate finished in just a few msec, everything was OK.
If it needed 2-3 seconds to complete, it was forcibly killed by something.
I wrote a minimal initscript (attached) in order to simplify reproducing the problem.
Put it in /etc/init.
The problems is in this line:
(echo start4; sleep 10; echo stop4) >/var/run/test4 2>&1 &
where "start4" appears in the output file, but "stop4" doesn't appear, because that process was forcibly killed while sleep was running, maybe by upstart at the end of the rcS.d stage?
To post a comment you must log in.