Le mardi 29 septembre 2009 18:48:45, Romeo a écrit :
> Hi!

        Hi !

> Can i use logrotate tool to rotate liquisoap log, or it has internal
> capabilities to do this stuff?

Yes you can ! :-)

The basic logrotate script provided by liquidsoap is:
/var/log/liquidsoap/*.log {
  compress
  rotate 5
  size 300k
  missingok
  notifempty
  sharedscripts
  postrotate
    for liq in /var/run/liquidsoap/*.pid ; do
      if test $liq != '/var/run/liquidsoap/*.pid' ; then
        start-stop-daemon --stop --signal USR1 --quiet --pidfile $liq
      fi
    done
  endscript
}

As you can see, you need to send the USR1 signal to liquidsoap after moving 
the file away..


Romain

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to