Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2002 22:24:56 -0800
From:      Adam Weinberger <adamw@FreeBSD.ORG>
To:        Stephen Montgomery-Smith <stephen@math.missouri.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: What happens at shutdown
Message-ID:  <20021205062456.GE60177@vectors.cx>
In-Reply-To: <3DEE4E4A.20701@math.missouri.edu>
References:  <3DEE4E4A.20701@math.missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> (12.04.2002 @ 1049 PST): Stephen Montgomery-Smith said, in 0.5K: <<
> When the system shuts down (like for example if I press CTRL-ALT-DEL), 
> do the running processes receive SIGTERM before or after all the 
> filesystems have been umounted?  Would this be done even if I do 
> something like
> kill -USR1 1
> 
> (Please copy the answer to me as I am not subscribed to this mailing list.)
>> end of "What happens at shutdown" from Stephen Montgomery-Smith <<

Please see shutdown(8), init(8), and halt(8).

Programs get SIGTERM (and then SIGKILL) before the disks are unmounted. This
would be disastrous otherwise, as processes could still have files open.

For your SIGUSR1 question, the answer is yes, but you should read
init(8) for more details. It's a well-written manpage. Start at line 84.

# Adam


- --
Adam Weinberger
vectors.cx	>>	adam@vectors.cx
FreeBSD.org	<<	adamw@FreeBSD.ORG
Bayer Berkeley	>>	adam.weinberger.b@bayer.com
#vim:set ts=8: 8-char tabs prevent tooth decay.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE97vE4o8KM2ULHQ/0RArLuAKChKXKvds2q9L9zxwvFduiwZb/lUACgoC9J
J38hGdp67YR6xSP9yVEXNoc=
=Z557
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021205062456.GE60177>