Sophie

Sophie

distrib > Fedora > 14 > i386 > media > os > by-pkgid > bd22c5b0adb3d4f89d09722dea9d447d > scriptlet

oidentd-2.0.8-8.fc12.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ]; then
    /sbin/service oidentd stop &>/dev/null
    /sbin/chkconfig --del oidentd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add oidentd

POSTUN

/bin/sh
if [ $1 -ge 1 ]; then
    # The most common case
    /sbin/service oidentd condrestart &>/dev/null
    # The special case, since we renamed the service from "identd" to "oidentd"
    # between 2.0.7 and 2.0.8 packages - this is a "name change" condrestart
    if [ -f /var/lock/subsys/identd ]; then
        /sbin/service identd stop &>/dev/null
        /sbin/service oidentd start &>/dev/null
    fi
fi