PREIN
/bin/sh
/usr/sbin/useradd -M -r -d /usr/share/icecast -s /sbin/nologin \ -c "icecast streaming server" icecast > /dev/null 2>&1 || :
PREUN
/bin/sh
if [ $1 = 0 ]; then /sbin/service icecast stop >/dev/null 2>&1 /sbin/chkconfig --del icecast fi
POSTIN
/bin/sh
/sbin/chkconfig --add icecast
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then /sbin/service icecast condrestart >/dev/null 2>&1 fi if [ $1 = 0 ] ; then userdel icecast >/dev/null 2>&1 || : fi