Excellent! Thank you David, run ok.

I paste here the logrotate code for future reference:

[r...@radiotangorosario /]# cat /etc/logrotate.d/liquidsoap

/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
         /bin/kill -USR1 `cat $liq 2>/dev/null` 2> /dev/null || true
       fi
     done
   endscript
}

Regards
--
Normando
Radiotango Rosario - www.radiotangorosario.com.ar

El 19/12/2010 01:04 p.m., David Baelde escribió:
> Hi Normando,
>
> On Thu, Dec 16, 2010 at 8:52 AM, Normando Hall<[email protected]>  wrote:
>>          #/bin/kill USR1 `cat $liq 2>/dev/null` 2>  /dev/null || true
>>          #/bin/kill -HUP `cat $liq 2>/dev/null` 2>  /dev/null || true
>>          start-stop-daemon --stop --signal USR1 --quiet --pidfile $liq
> In the first line you need to add a dash (kill -USR1) and the second
> line doesn't do anything (liquidsoap reopens on USR1, doesn't do
> anything on HUP). Anyway I can confirm that all you need to do in the
> postrotate is send USR1 to liquidsoap so it reopens its log file.
>
> Does that help?


------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to