init.d scripts for shutdown and reboot
Cameron Hutchison
lists at xdna.net
Thu Dec 11 00:28:22 UTC 2008
Kailesh Mussai <kmussa at cs.mcgill.ca> writes:
>I am trying to understand how ubuntu does a shutdown. From what I
>understand in the rc0.d, here is a part of ls -l:
>root at turkana:/etc/rc0.d# ls -l
>lrwxrwxrwx 1 root root 13 2008-10-10 11:45 K01gdm -> ../init.d/gdm
>---snip----
>lrwxrwxrwx 1 root root 22 2008-10-10 11:45 S31umountnfs.sh -> ../init.d/umountnfs.sh
>lrwxrwxrwx 1 root root 17 2008-10-14 10:30 S32portmap -> ../init.d/portmap
>lrwxrwxrwx 1 root root 20 2008-10-10 11:45 S35networking -> ../init.d/networking
>lrwxrwxrwx 1 root root 18 2008-10-10 11:45 S40umountfs -> ../init.d/umountfs
>lrwxrwxrwx 1 root root 20 2008-10-10 11:45 S60umountroot -> ../init.d/umountroot
>lrwxrwxrwx 1 root root 14 2008-10-10 11:45 S90halt -> ../init.d/halt
>The init scripts umountnfs.sh, umountfs, umountroot do nothing when
>started but only when stopped, an example is:
>root at turkana:/etc/rc0.d# /etc/init.d/umountfs start # No-op
>The reason I am asking is,
I'm not sure what you're asking, as there is no question in your
message.
It may help you to know that in runlevels 0 and 6, the S* scripts are
run with the "stop" argument. In the other runlevels, the S* scripts are
run with the "start" argument. For all runlevels, K* scripts are run
with the "stop" argument.
More information about the ubuntu-users
mailing list