Subject: Re: shutdown actions
To: None <mouse@Rodents.Montreal.QC.CA, port-sparc@NetBSD.ORG>
From: The Grey Wolf <greywolf@starwolf.com>
List: port-sparc
Date: 12/31/1997 09:00:58
[This may have been sent twice ; sorry if so]
[ Corrected: port-sparc -> current-users ]

der Mouse sez:
#:
#: I'm not sure about this.  There are at least five documented ways of
#: shutting the system down (signal init with SIGTERM or SIGTSTP, or run
#: shutdown, halt, or reboot), with at least four different target states
#: (single-user, halt, reboot, and that weird one you get when you SIGTSTP
#: init).  Which of them should run what, and when?

init should run rc.shutdown as soon as it is instructed to change state,
i.e. "this is init's job, not halt/shutdown/reboot's job".  This also
means that the TSTP bit is not really an issue, and most of the required
code already exists in reboot/halt.  All we would need is to make sure
that the -q and -n Do The Right Thing.

#:
#: 					der Mouse
#:
#: 			       mouse@rodents.montreal.qc.ca
#: 		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
#: