| Summary: | net-misc/icecast should have logrotate support | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | DEMAINE Benoît-Pierre, aka DoubleHP <dhp_gentoo> |
| Component: | New packages | Assignee: | Markos Chandras (RETIRED) <hwoarang> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | barzog |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | /etc/logrotate.d/icecast | ||
|
Description
DEMAINE Benoît-Pierre, aka DoubleHP
2010-06-19 19:22:18 UTC
(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 |