PREIN
/bin/sh
/usr/sbin/fedora-groupadd 36 -r ngircd &>/dev/null || :
/usr/sbin/fedora-useradd 36 -r -s /sbin/nologin -d /tmp -M \
-c '"Next Generation IRC Daemon"' -g ngircd ngircd &>/dev/null || :
PREUN
/bin/sh
if [ $1 = 0 ]; then
/sbin/service ngircd stop >/dev/null 2>&1 || :
/sbin/chkconfig --del ngircd
fi
POSTIN
/bin/sh
# This adds the proper /etc/rc*.d links for the script
/sbin/chkconfig --add ngircd
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
/sbin/service ngircd condrestart >/dev/null 2>&1 || :
fi
test "$1" != 0 || /usr/sbin/fedora-userdel ngircd &>/dev/null || :
test "$1" != 0 || /usr/sbin/fedora-groupdel ngircd &>/dev/null || :