I am trying to setup logrotate in FC10 (which I know is rare around
here).  In the postrotate script, my kill -HUP is actually killing the
liquidsoap process rather than reloading config and writing a new
fresh log file.  Am I missing something here?  Here's my script,
adapted from other FC10 logrotate scripts and the ubuntu scripts that
I have seen.

/home/user/.liquidsoap/*.log {
   notifempty
   missingok
   compress
   compresscmd /usr/bin/bzip2
   uncompresscmd /usr/bin/bunzip2
   compressext .bz2
   delaycompress
   daily
   rotate 10
   postrotate
    for liq in /home/user/.liquidsoap/run/*.pid ; do
     if test $liq != '/home/user/.liquidsoap/run/*.pid' ; then
       /bin/kill -HUP `cat $liq  2>/dev/null` 2> /dev/null || true
     fi
   done
endscript
}

Hope someone can help.

--
Chris Everest

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to