Processes spawned by initscripts are forcibly killed if delayed

Bug #759568 reported by Alkis Georgopoulos
10
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.d/spawn-test, and symlink it to /etc/rcS.d/S33spawn-test.

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?

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.