[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: shutdown question
On Tue, Feb 17, 2004 at 12:51:45AM -0000, scott wrote:
> hi
>
> if I do a shutdown -r or -h on OBSD 3.4 on i386 platform, how does the
> system shutdown any running processes (for example mysqld or apache) ? I
> have found the /etc/rc.shutdown script that I can add to, but I'm not sure
> what is being done already at shutdown without this script
>
> thanks
>
> _scott
# man shutdown
--snip--
-h The system is halted at the specified time when shutdown execs
halt(8).
-r shutdown execs reboot(8) at the specified time.
--snip--
# man halt
# man reboot
--snip--
The halt and reboot utilities flush the file system cache to disk, run
the system shutdown script, send all running processes a SIGTERM (and
subsequently a SIGKILL), and, respectively, halt or restart the system.
--snip--
and of course there's:
# man rc.shutdown
--
Christopher D. Palmer