Re: Rotatelog for traditional Unix systems

2003-02-19 Thread Alex Judd
A much cleaner version of the HUP code that

 + ACTIONS:
 + kill - HUP | ps -ef | grep -i production | awk '{print $2}'  :
 /var/log/kannel/access.log, /var/log/kannel/enpocket.log,
 /var/log/kannel/smsbox.log


ACTIONS:
for pid in `ps -ef | grep -i bear | awk '{print $2}'` ; do kill -HUP $pid ;
done : /var/log/kannel/access.log, /var/log/kannel/enpocket.log,
/var/log/kannel/smsbox.log





Re: Rotatelog for traditional Unix systems

2003-02-18 Thread Bruno Rodrigues
Citando Alex Judd [EMAIL PROTECTED]:

 Everyone
 
 Additional comments on rotating logs for the userguide for systems that
 don't have RedHat's logrotate installed.
 
 + ACTIONS:
 + kill - HUP | ps -ef | grep -i production | awk '{print $2}'  :
 /var/log/kannel/access.log, /var/log/kannel/enpocket.log,
 /var/log/kannel/smsbox.log
 + NOTIFY:
 + [EMAIL PROTECTED]

kill - HUP | something ? what's this ? shouldn't it be something like
kill -HUP `something | otherthing` ? 
isn't there a pidof command ?
and won't rotatelog support /var/log/kannel/*.log ?


-- 
Davi / Bruno.RodriguesatLitux.Org
Litux.org: 10:29:55 up 87 days, 11:45,  7 users,  load average: 0.12, 0.07, 0.01
'Turn right here. No! NO! The OTHER right!'