[Cialug] HELP! Postfix not logging
Bailey, Jonathan C
cialug@cialug.org
Fri, 29 Oct 2004 16:21:22 -0500
I think that is up next. I rotate those manually about every week or =
so... What about MySQL? Can you do the same thing to it?
Jon
-----Original Message-----
From: cialug-admin@cialug.org [mailto:cialug-admin@cialug.org]On Behalf
Of Jon Clemons
Sent: Friday, October 29, 2004 4:15 PM
To: cialug@cialug.org
Subject: Re: [Cialug] HELP! Postfix not logging
Yea, I was thinking he was taking lazy sysadmin to a new level:)
Grasshopper shouldn't be hosting multiple domains in Apache until
he knows how to properly rotate the logs:)
----- Original Message -----=20
From: "David Champion" <dave@visionary.com>
To: <cialug@cialug.org>
Sent: Friday, October 29, 2004 4:10 PM
Subject: Re: [Cialug] HELP! Postfix not logging
> JB needs to learn the difference between Artificial Laziness and True=20
> Laziness.
>
> The Truly Lazy sysadmin scripts everything, so they only have to do it =
> once. The Artificially Lazy one does the task manually because it =
saves a=20
> little time over writing a script, but then does the same task over =
and=20
> over again...
>
> That is the lesson for today, Grasshopper. Go forth and write many=20
> scripts.
>
> p.s. For our Apache logrotate, we do all of the rotates for the =
virtual=20
> domains (and call the webalizer for that domain), then just call the =
-HUP=20
> after the last one. I suppose it could cause you to loose a couple =
entries=20
> in some logs in the interim.
>
> -dc
>
> Jon Clemons wrote:
>
>> Geesh:) Ok, for Redhat. Use script syntax below make new file in=20
>> /etc/logrotate.d/ called httpd or domain whatever
>>
>> /web/apache/www/logs/*log {
>> missingok
>> sharedscripts
>> postrotate
>> /bin/kill -HUP `cat /web/apache/www/logs/httpd.pid =
2>/dev/null` 2>=20
>> /dev/null || true
>> endscript
>> }
>>
>> And one for syslog
>>
>> /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler=20
>> /var/log/boot.log /var/log/cron {
>> sharedscripts
>> postrotate
>> /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2>=20
>> /dev/null || true
>> endscript
>> }
>>
>>
>> ----- Original Message ----- From: "Bailey, Jonathan C" =
<bailj0@bp.com>
>> To: <cialug@cialug.org>
>> Sent: Friday, October 29, 2004 3:39 PM
>> Subject: RE: [Cialug] HELP! Postfix not logging
>>
>>
>> True, but I'd have to read up on logrotate for how to do it first. =
That=20
>> is, unless someone wants to post a crash course here.. I WOULD like =
to=20
>> know how to rotate my apache logs for multiple domains (access.log.*, =
>> error.log.*)
>>
>>
>>
>> Jon
>>
>> -----Original Message-----
>> From: cialug-admin@cialug.org [mailto:cialug-admin@cialug.org]On =
Behalf
>> Of Jon Clemons
>> Sent: Friday, October 29, 2004 3:37 PM
>> To: cialug@cialug.org
>> Subject: Re: [Cialug] HELP! Postfix not logging
>>
>>
>> It takes longer to rotate them once by hand then it does to set it up =
for
>> logrotate to do it for you:)
>>
>>
>> ----- Original Message ----- From: "Bailey, Jonathan C" =
<bailj0@bp.com>
>> To: <cialug@cialug.org>
>> Sent: Friday, October 29, 2004 3:34 PM
>> Subject: RE: [Cialug] HELP! Postfix not logging
>>
>>
>> I SHOULD, but I just haven't had time to... (I do use logrotate for
>> everything else)
>>
>>
>> Jon
>>
>>
>> -----Original Message-----
>> From: cialug-admin@cialug.org [mailto:cialug-admin@cialug.org]On =
Behalf
>> Of David Champion
>> Sent: Friday, October 29, 2004 10:18 AM
>> To: cialug@cialug.org
>> Subject: Re: [Cialug] HELP! Postfix not logging
>>
>>
>> Silly question, but do you have logrotate on your system? You can =
have
>> it, er, rotate your logs for you.
>>
>> -dc
>>
>> Jonathan Bailey wrote:
>>
>>> Found the issue... Had to killall -HUP syslogd after rotating logs.
>>>
>>>
>>> Jon
>>>
>>> -----Original Message-----
>>> From: cialug-admin@cialug.org [mailto:cialug-admin@cialug.org] On
>>
>> Behalf Of
>>
>>> Bailey, Jonathan C
>>> Sent: Thursday, October 28, 2004 10:03 PM
>>> To: cialug@cialug.org
>>> Subject: [Cialug] HELP! Postfix not logging
>>>
>>> I just killed postfix on my server to manually rotate the logs. I
>>
>> touched
>>
>>> and chmoded the logs to what is below. Now postfix will not write
>>
>> anything
>>
>>> to the logs. The log for maildrop (which is invoked for almost every
>>
>> domain)
>>
>>> is working fine. Ideas?
>>>
>>> -rw-r----- 1 root adm 0 Oct 28 21:34 mail.err
>>> -rw-r----- 1 root adm 0 Oct 28 21:34 mail.info
>>> -rw-r----- 1 root adm 0 Oct 28 21:34 mail.log
>>> -rw-r----- 1 root adm 217k Oct 28 21:57 mail.warn
>>>
>>>
>>> (Note - I didn't rotate mail.warn)
>
>
> _______________________________________________
> Cialug mailing list
> Cialug@cialug.org
> http://cialug.org/mailman/listinfo/cialug
>=20
_______________________________________________
Cialug mailing list
Cialug@cialug.org
http://cialug.org/mailman/listinfo/cialug