Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > c8845dc7c3a6be061522f071d9d7b9b3 > scriptlet

oidentd-2.0.8-9.fc15.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