From owner-freebsd-questions Wed Dec 4 22:22:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1B3C37B404 for ; Wed, 4 Dec 2002 22:22:36 -0800 (PST) Received: from vectors.cx (manifold.vectors.cx [64.163.147.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43C4A43E9C for ; Wed, 4 Dec 2002 22:22:36 -0800 (PST) (envelope-from monkey@vectors.cx) Received: from vectors.cx (4dcda278f5955c68832828bf333e54ee@localhost [127.0.0.1]) by vectors.cx (8.12.6/8.12.4) with ESMTP id gB56OuI8005028; Wed, 4 Dec 2002 22:24:56 -0800 (PST) (envelope-from monkey@vectors.cx) Received: (from monkey@localhost) by vectors.cx (8.12.6/8.12.6/Submit) id gB56OugV005027; Wed, 4 Dec 2002 22:24:56 -0800 (PST) (envelope-from monkey) Date: Wed, 4 Dec 2002 22:24:56 -0800 From: Adam Weinberger To: Stephen Montgomery-Smith Cc: freebsd-questions@FreeBSD.ORG Subject: Re: What happens at shutdown Message-ID: <20021205062456.GE60177@vectors.cx> References: <3DEE4E4A.20701@math.missouri.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <3DEE4E4A.20701@math.missouri.edu> X-Editor: Vim 6.1 http://www.vim.org X-Mailer: Mutt 1.5 http://www.mutt.org X-PGP-Key: http://www.vectors.cx/pgp.key.txt X-URL: http://www.vectors.cx http://www.crackula.com User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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