(0001609)
vda
09-03-06 07:36
|
ml post says:
I've added a shutdown script in my inittab, with the SHUTDOWN action
type, in order to cleanly stop some processes upon shutdown.
From init/init.c:
/* run everything to be run at "shutdown". This is done _prior_
* to killing everything, in case people wish to use scripts to
* shut things down gracefully... */
run_actions(SHUTDOWN);
Unfortunately, these processes I'm trying to kill were previously
started by "init" itself (they are configured in inittab).
As a consequence, they becomes zombies with no possibility to be fully
reaped from my shutdown script.
<end quote>
I don't understand the problem. Why do you worry about zombies - they don't keep any resources pinned down IIRC and you can shutdown machine with them still there. If you are just worried about it being "not nice", then entire SysV /etc/inittab is a big mess anyway... |