JackOfAll wrote: 
> Yeah, that's on the list. Need to get Triode to add something to
> squeezelite so I can HUP (or send a pre-defined signal to it) it after
> logrotate to cause squeezelite to re-create/re-open the log file. S'pose
> I could restart it after moving/renaming the log file, but I wrote
> "inelegant" next to that......

I've use this logrotate for squeezelite logs on my wandboard.  No need
to deal with signals, squeezelite happily starts writing to the
truncated file.

# cat /etc/logrotate.d/squeezelite

Code:
--------------------
    /var/log/squeezelite/squeezelite.log {
  copytruncate
  daily
  rotate 52
  compress
  missingok
  su squeezelite squeezelite
  }
--------------------



Ralphy

*1*-Touch, *4*-Classics, *2*-Booms, *1*-Reverted UE Radio
*1*-Squeezeslave, *2*-Squeezeplays, *5*-Squeezelites
'Squeezeslave' (http://code.google.com/p/squeezeslave/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezeslave&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=99395

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to