No, this may only apply in the SysV init world. For a non-SysV init,
it is perfectly legitimate to have shutdown(8) do the real work.
> > On Mon, 14 Dec 1998, Stephen Harris wrote:
> >
> > > Richard Gooch writes:
> > > > Jason A. Pfeil writes:
> > >
> > > > > Shutdown just calls a routine in the kernel to handle the shutdown before
> > > > > it is killed itself. Therefore, this ability needs to be in the kernel
> > >
> > > > Sorry, I don't agree. The shutdown(8) programme is what kills all
> > > > processes, unmounts filesystems, remounts the root FS read-only, syncs
> > > > the discs and then calls reboot(2) which halts/reboots.
> > >
> > > Could this code be in shutdown(8) ? Hmm, no... there is always the
> > > possibility that the kernel may need to perform some other "clean up" work.
> > > Surely this is the concept behind the notifier_call_chain() calls inside
> > > sys_reboot().
> > >
> > > For example, the wdt driver turns off the card at shutdown time. If the
> > > shutdown(8) program never calls sys_reboot() then the card is never turned
> > > off, and a watchdog reset could occur. Not good :-) It could cause a
> > > reboot! Some other drivers also hook into the reboot_notifier_list to
> > > perform a cleanup on shutdown.
Hm. Point taken.
Regards,
Richard....
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/