[Pkg-sysvinit-devel] questions and improvements

Christoph Anton Mitterer christoph.anton.mitterer at physik.uni-muenchen.de
Fri Jul 2 20:29:11 UTC 2010


Hi.

Some questions on the halt/reboot/shutdown thingy:

1) in /etc/init.d/reboot AND /etc/init.d/halt:
Why do we use -f to halt/reboot?

If we're acutally going to rc0/6, it's not needed anyway as far as I  
understand the manpage.
If we're in non rc 0/6, a user probably will just halt/reboot/poweroff  
cleanly, and not forced,... so halt/reboot invoking shutdown instead  
would be nicer, wouldn't it?


2) in /etc/init.d/reboot:
Why do we use -i? Just out of curiosity.


3)in /etc/init.d/halt:
- Why do we use HALT only if INIT_HALT=""?
- Why don't we shutdown HDDs when using RAID?

4) I've attached is a patch (halt.patch) for the halt iniscript which  
cleanly expect "poweroff" or "halt".... I think the current way of  
looking just for [Pp]* or [Hh]* is unnecessary fuzzy.

5) I've also attached a replacement for /etc/default/halt (halt).
- As far as I understand, the current documentation in it "Default  
behaviour of shutdown -h / halt." is wrong, as it only affects the  
initscript, not shudown or halt binaries, right?
- I've added NETDOWN + description


Cheers,
Chris.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

-------------- next part --------------
#Controls the behaviour of /etc/init.d/halt


#How to shut the system down.
#
#Values:
#"halt" - Halt the system without powering off.
#"poweroff" - halt the system with powering off.
#
#Default if unset: "poweroff"
HALT=poweroff

#Whether to shut down all network interface cards.
#
#Values:
#"no" - Do not shut down all network interface cards.
#"yes" - Shut down all network interface cards.
#
#Default if unset: "yes"
NETDOWN=yes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: halt.patch
Type: text/x-patch
Size: 277 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20100702/f1564977/attachment.bin>


More information about the Pkg-sysvinit-devel mailing list