From owner-freebsd-questions Tue May 11 7:56:38 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.surnet.ru (mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (Postfix) with ESMTP id 2944614E48 for ; Tue, 11 May 1999 07:56:32 -0700 (PDT) (envelope-from ilia@cgilh.chel.su) Received: (from uucgilh@localhost) by mobil.surnet.ru (8.9.1a/8.9.1) with UUCP id UAA25992; Tue, 11 May 1999 20:54:50 +0600 (UDT) Received: (from uucp@localhost) by cgilh.chel.su (8.8.7/8.8.7) with UUCP id TAA00902; Tue, 11 May 1999 19:58:50 +0600 Received: from localhost (ilia@localhost) by jane.cgu.chel.su (8.9.2/8.9.2) with ESMTP id TAA23095; Tue, 11 May 1999 19:39:58 +0600 (ESS) (envelope-from ilia@cgilh.chel.su) X-Authentication-Warning: jane.cgu.chel.su: ilia owned process doing -bs Date: Tue, 11 May 1999 19:39:58 +0600 (ESS) From: Ilia Chipitsine X-Sender: ilia@jane.cgu.chel.su To: Anand Buddhdev Cc: freebsd-questions@FreeBSD.ORG Subject: Re: running programs on shutdown In-Reply-To: <19990511130455.G542@africaonline.co.ke> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG have a look at /etc/rc.shutdown, mate ... Regards, (с наилучшими пожеланиями,) Ilia Chipitsine (Илья Шипицин) On Tue, 11 May 1999, Anand Buddhdev wrote: > Is there any way to run certain scripts on system shutdown? I'm using > FreeBSD 3.1R. > > I'm asking because I need some programs on my machine to be terminated in a > specific order. What exactly does FreeBSD do at shutdown? does it first > send a TERM signal to all processes, followed by a KILL signal, like linux? > > Is syslog the last to die? This is also important, otherwise programs that > exit after syslog may not be able to record last minute activity before > shutting down. > > Any ideas/help will be appreciated. > > -- > System Administrator > See complete headers for address, homepage and phone numbers > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message