BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000854 [BusyBox] New Features minor always 04-27-06 02:32 11-21-06 04:01
Reporter aforet View Status public  
Assigned To BusyBox
Priority normal Resolution won't fix  
Status closed   Product Version 1.00
Summary 0000854: 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.
Additional Information
Attached Files

- Relationships

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

- 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
11-21-06 04:01 vda Resolution open => won't fix


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker