[BusyBox 0000854]: init applet should provide a way to stop started applications on shutdown/reboot

bugs at busybox.net bugs at busybox.net
Tue Nov 21 12:01:38 UTC 2006


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=854 
====================================================================== 
Reported By:                aforet
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   854
Category:                   New Features
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             04-27-2006 02:32 PDT
Last Modified:              11-21-2006 04:01 PST
====================================================================== 
Summary:                    init applet should provide a way to stop started
applications on shutdown/reboot
Description: 
The init applet provides a way to call an external script when a shutdown
or reboot procedure is triggered in order to perform some cleanup.

Hoewer, from this script, there is no clean way to stop a process started
by init.

See http://www.busybox.net/lists/busybox/2006-January/017628.html for a
usage example.

Busybox init should provide a way to users to cleanly stop processes
started from init.
====================================================================== 

---------------------------------------------------------------------- 
 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... 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-27-06 02:32  aforet         New Issue                                    
04-27-06 02:32  aforet         Status                   new => assigned     
04-27-06 02:32  aforet         Assigned To               => BusyBox         
09-03-06 07:36  vda            Note Added: 0001609                          
11-21-06 04:01  vda            Status                   assigned => closed  
======================================================================




More information about the busybox-cvs mailing list