Subject: Re: reboot vs shutdown -r
To: None <current-users@netbsd.org>
From: David Holland <dholland+netbsd@eecs.harvard.edu>
List: current-users
Date: 02/14/2006 17:40:41
 > > I wondered if reboot could be made "RAID safe" ?
 >
 > Linux version of reboot does it. Reboot detects if it was called during a
 > normal reboot sequence. If it was not, it executes shutdown -r.
 >
 > This is IMHO an ugly workaround. Maybe reboot and halt could be moved to
 > /libexec (out of the $PATH) so that people have to learn to use shutdown?

Isn't the right answer to have reboot instead of shutdown run
/etc/rc.shutdown?

The traditional analogous behavior is posting SIGTERM to everything,
and that's done by reboot. If you don't want it, that's what reboot -q
is for...

-- 
   - David A. Holland / dholland@eecs.harvard.edu