From owner-freebsd-questions Sun Nov 8 19:57:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA03317 for freebsd-questions-outgoing; Sun, 8 Nov 1998 19:57:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA03312 for ; Sun, 8 Nov 1998 19:57:39 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id TAA22739; Sun, 8 Nov 1998 19:57:18 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Sun, 8 Nov 1998 19:57:18 -0800 (PST) From: Doug White To: Evren Yurtesen cc: questions@FreeBSD.ORG Subject: Re: shutdown commands In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 3 Nov 1998, Evren Yurtesen wrote: > I want to change the system behaviour when I press on ctrl+alt+del > I am using squid in one of my freebsd boxes and when somebody > restarts it squid tries to read a log file which is very long! > because it did not close right, I guess normally system closes > processes with something like kill -9 ... > I need to issue kill -TERM for squid and system should wait enough time > for it to be able to write last changes to its log. > I have looked at man init page and there it is talking about a > file called /etc/rc.shutdown but I do not have that file, > should I create it? or how can I change the shutdown commands? Yes, create /etc/rc.shutdown as a shell script for what you want the system to do at shutdown, which in your case is bring down squid gracefully. The system will wait for rc.shutdown to complete before forcibly killing things. Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message