Date: Mon, 8 Feb 1999 19:18:54 +0100 From: Gunnar Flygt <gunnar@pluto.sr.se> To: "Francis A. Vidal" <francis@usls.edu> Cc: questions@FreeBSD.ORG Subject: Re: clean shutdown Message-ID: <19990208191854.B5045@sr.se> In-Reply-To: <Pine.LNX.4.05.9902050540320.7291-100000@linux1.usls.edu>; from Francis A. Vidal on Fri, Feb 05, 1999 at 05:43:11AM %2B0000 References: <Pine.LNX.4.05.9902050540320.7291-100000@linux1.usls.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
I made a search on the www.freebsd.org and this is what I found: > 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 On Fri, Feb 05, 1999 at 05:43:11AM +0000, Francis A. Vidal wrote: > hi all, > > i'm running FBSD 2.2.8-STABLE and i wonder if there is a configurable > shutdown rc. file that would let me specify shutdown sequence for some > daemons and processes. > > i'm asking this because i'm running squid and it takes an awfull amount of > time to get it up again because it rebuilds the cache if it was not > shutdown properly (i.e. `squid -k shutdown'). So a good tip is. Always look at www.freebsd.org and the search part of the site. You can search in previous mails to almost all lists from freebsd.org > > -- > francis vidal university of st. la salle, bacolod city, philippines > . . . . . . . PGP key available via e-mail / subject: get PGP key > u s l s N E T tel. nos. (6334).435.2324 / 433.3526 > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- __o regards, Gunnar ---_ \<,_ email: flygt@sr.se ---- (_)/ (_) 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?19990208191854.B5045>