Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20336 - [icecast] logrotate script doesn't work because pid file is missing

Attached to Project: Arch Linux
Opened by Michael Gwin (oksijun) - Sunday, 01 August 2010, 23:18 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 12 November 2010, 15:45 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The default logrotate script included in the icecast package contains the following postrotate script:
/bin/kill -HUP `cat /var/run/icecast/icecast.pid 2>/dev/null` 2> /dev/null || true

However, the directory /var/run/icecast is not included in the package, and the default config file, /etc/icecast.xml, does not indicate a pid file location:
<!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->

Additional info:
* package version(s)

2.3.2-3

* config and/or log files etc.

/etc/icecast.xml
/var/log/icecast/{access,error}.log

Steps to reproduce:

Run logrotate and check which log file icecast has open (e.g. 'lsof -n | grep icecast' or something to the same effect).
On my system, the icecast process was using /var/log/icecast/access.log.1 and /var/log/icecast/error.log.1
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 12 November 2010, 15:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  line removed in icecast 2.3.2-4

Loading...