This is usually handled by the ca entry in the /etc/inittab file of your
system. E.g. mine says: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
which signals an orderly shutdown if I use the Ctrl-Alt-Del combination.
Kris
On Tue, Mar 26, 2002 at 11:43:11AM -0700, Ferguson, Neale wrote:
> I am playing around with automated shutdown and am trying to
> use the ctrl_alt_del() routine to achieve the halt. If this
> routine is entered it checks a global variable C_A_D which by
> default is set on. However, during startup of my SuSE system
> it is turned off (via syscall sys_reboot). If I force it on
> and drive the routine I get a system restart without any
> orderly shutdown such that my filesystems need checking etc.
> What options do I have to change this behavior (a call to
> sys_reboot with the correct parameters can cause halt or
> power-off actions to be taken but are there more inventive
> things I can do)?
--
Never underestimate a Mage with:
- the Intelligence to cast Magic Missile,
- the Constitution to survive the first hit, and
- the Dexterity to run fast enough to avoid being hit a second time.