Bug#742798: icecast2: init script does not support 'status' command

Sven Herzberg sven.herzberg at cluepunk.com
Thu Mar 27 15:41:36 UTC 2014


Package: icecast2
Version: 2.3.2-9+deb7u2
Severity: normal
Tags: patch

It would be great to provide a way to query the status of the service.
This is useful for systems such as salt [1] to query the status of a
service.
[1] http://www.saltstack.com/community/

Other services (e.g. sshd) provide a status command for this purpose.

I'll provide a patch to add support for this feature. The patch is
tested on my system after these things:

 * install libxml2-utils (for xmllint)
 * create a folder /var/run/icecast2
 * set the owner to icecast2:icecast
 * set the pidfile in /etc/icecast2/icecast.xml to
   /var/run/icecast2/icecast.pid
 * restart the icecast server
 * Happiness!

Thank you very much,
Sven Herzberg

-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 2.6.32-26-pve (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icecast2.init+pidfile.patch
Type: text/x-diff
Size: 936 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20140327/cb018ca3/attachment.patch>


More information about the pkg-multimedia-maintainers mailing list