uranus logrotate.d # date Sat Jun 19 21:18:58 CEST 2010 uranus logrotate.d # ls -lha /var/log/icecast/ total 18M drwxrw-r-- 2 icecast nogroup 4.0K Jun 11 03:16 . drwxr-xr-x 25 root root 4.0K Jun 19 15:40 .. -rw-r--r-- 1 icecast nogroup 125K Jun 19 02:27 access.log -rw-r--r-- 1 icecast nogroup 8.0M Jun 19 02:27 error.log -rw-r--r-- 1 icecast nogroup 9.8M Jun 11 03:16 error.log.old -rw-r--r-- 1 root root 0 May 21 13:21 .keep_net-misc_icecast-0 uranus logrotate.d # head -n1 /var/log/icecast/access.log 192.168.0.1 - - [21/May/2010:13:38:46 +0200] "SOURCE /mpd.ogg HTTP/1.0" 200 19 "-" "MPD" 10 uranus logrotate.d # Like for all other services, I expect logrotate to weekly stop the service, cut the log, restart service, and compress old logs. Please make an ebuild revision. net-misc/icecast-2.3.2 ATM for me. Good luck.
(In reply to comment #0) > Good luck. I assume you will be attaching the /etc/logrotate.d file here as well? Otherwise this is pretty much wontfix case.
no, because i have no clue how to write it :)
Created attachment 235981 [details] /etc/logrotate.d/icecast Suggestion, untested. It would take 3 weeks to wait and see if it works as expected ...
any news?
This works for me: dhp@uranus ~ $ cat /etc/logrotate.d/icecast # Copied from Apache2 logrotate snipet for Gentoo Linux # Contributes by Chuck Short # /var/log/icecast/*log { missingok notifempty sharedscripts postrotate /etc/init.d/icecast reload > /dev/null 2>&1 || true endscript } dhp@uranus ~ $ cat /etc/logrotate.conf weekly rotate 4000 create dateext compress include /etc/logrotate.d notifempty nomail noolddir /var/log/wtmp { monthly create 0664 root utmp rotate 4000 } /var/log/btmp { missingok monthly create 0600 root utmp rotate 4000 } dhp@uranus ~ $
Yes. I have similar solution, but think that this must be included in ebuild.
I am not maintainer; I can not alter ebuilds on official repos. I am just a reporter. Not even a dev. >2y to fix such a trivial issue ...
(In reply to comment #6) > Yes. I have similar solution, but think that this must be included in ebuild. if the logrotate script works for you I will include it
(In reply to comment #7) > I am not maintainer; I can not alter ebuilds on official repos. I am just a > reporter. Not even a dev. > > >2y to fix such a trivial issue ... oh and the issue is trivial not critical so it has a very low priority but I admit I haven't noticed this bug until today
+*icecast-2.3.3-r1 (23 Dec 2012) + + 23 Dec 2012; Markos Chandras <hwoarang@gentoo.org> +files/icecast.logrotate, + +icecast-2.3.3-r1.ebuild, metadata.xml: + Add logrotate file thanks to DEMAINE Benoît-Pierre <dhp_gentoo@doublehp.org>. + Bug #324727 +
Excuse me, but the logrotate script invokes `reload' on init script which is not implemented: # /etc/init.d/icecast reload * icecast: unknown function `reload' One has to add the reload() function into the /etc/init.d/icecast to send SIGHUP to the daemon.
(In reply to comment #11) > Excuse me, but the logrotate script invokes `reload' on init script which is > not implemented: > > # /etc/init.d/icecast reload > * icecast: unknown function `reload' > > One has to add the reload() function into the /etc/init.d/icecast to send > SIGHUP to the daemon. Care to submit a patch?
Fixed