Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 1998 19:57:18 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        questions@FreeBSD.ORG
Subject:   Re: shutdown commands
Message-ID:  <Pine.BSF.4.03.9811081956250.18760-100000@resnet.uoregon.edu>
In-Reply-To: <Pine.BSF.3.96.981103080026.14705A-100000@finland.ispro.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9811081956250.18760-100000>