[BusyBox] inittab shutdown and umount order
tom at ceisystems.com
tom at ceisystems.com
Sun Nov 2 21:51:17 MST 2003
Oskar,
Realisitically, this is something that each Linux distribution
approaches differently. My method is to stop all of the services I have
init scripts for, then remount my root partition read-only, and finally
execute a reboot. This does not account for any other processes that
may be running, and is thus severely broken if a "user" attempts to run
some sort of daemon by hand. However, as this is extremely unlikely, I
don't worry about it too much.
Good luck,
Thomas Cameron
CEI Systems
> -----Original Message-----
> I have enabled init and inittab-reading in busybox.
> The inittab has this line (among others):
>
> ::shutdown:/bin/umount -a -r
>
> I noticed that when the reboot command is run, first the
> above command is run, then all processes are sent SIGTERM
> then SIGKILL. This results in umount errors because some file
> systems are busy.
>
> It can't be right to umount file systems before processes are
> shut down, can it?
>
> Please cc me as I am not subscribed.
>
> Regards,
>
> Oskar Liljeblad (oskar at osk.mine.nu)
More information about the busybox
mailing list