Sophie

Sophie

distrib > Fedora > 13 > i386 > media > os > by-pkgid > e38783e5ef9bc0c7c92d14cde21f2bab > scriptlet

ngircd-0.12.1-3.fc12.i686.rpm

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 || :