Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2001 13:38:52 +0800
From:      Ying-Chieh Liao <ijliao@csie.nctu.edu.tw>
To:        Jorge Biquez <jbiquez@icsmx.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Newsyslog for rotating APACHE logs
Message-ID:  <20010101133852.A79689@terry.dorm8.nctu.edu.tw>
In-Reply-To: =?big5?Q?=3C5=2E0=2E2=2E1=2E2=2E20001231153034=2E01c780c0=40intranet=2Ec?= =?big5?Q?om=2Emx=3E=3B_from_jbiquez=40icsmx=2Ecom_on_=A4=E9_=2C__12_31?= =?big5?Q?=2C_2000_at_03:38:30=A4U=A4=C8_-0600?=
References:  <5.0.2.1.2.20001231153034.01c780c0@intranet.com.mx>

next in thread | previous in thread | raw e-mail | index | archive | help
On ¤é ,  12 31, 2000 at 15:38:30 -0600, Jorge Biquez wrote:
> I'm still on the rotation files. I wanted to try newsyslog before going for 
> the scripts paths since seems could be simpler.
> This is what I have on the newsyslog.conf file:
> # logfilename           owner.group     mode count size time [ZB] 
> [/pid_file] [sig_num]
> /var/log/maillog                        664  7     *    24    Z
> /var/log/sendmail.st                    664  10    *    168   B
> /usr/home/sites/logsite01txt            664  9     *    1503  B
> since I wanted that the file rotated at the 15:03 hours.
> On the contrab file I have this:
> #
> #minute hour    mday    month   wday    who     command
> 04      15       *       *       *       root    newsyslog
> 05      15       *       *       *       root    killall -HUP httpd
> But it is not working. I checked the permission and that's not the problem.
> Any suggestions, comments or ideas?.
> Thanks in advance,

why not use

newsyslog.conf:

/usr/home/sites/logsite01txt            664  9     *    1503  B		/path/to/httpd.pid

and you dont have to add "killall -HUP httpd" in your crontab
-- 
The sooner you start to code, the longer the program will take.
					--- Roy Carlson


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?20010101133852.A79689>