Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 5ed678ce39b886654b51ae4c7ceb2483 > scriptlet

matahari-0.4.0-0.1.8003b6c.git.fc15.1.x86_64.rpm

PREUN

/bin/sh
if [ $1 = 0 ]; then
    for svc in net host service ; do
       /sbin/service matahari-$svc stop >/dev/null 2>&1 || :
       chkconfig --del matahari-$svc
    done
fi

POSTIN

/bin/sh
for svc in net host service ; do
    /sbin/chkconfig --level 2345 matahari-$svc on
    /sbin/service matahari-$svc condrestart
done

POSTUN

/bin/sh
if [ "$1" -ge "1" ]; then
    for svc in net host service ; do
       /sbin/service matahari-$svc condrestart >/dev/null 2>&1 || :
    done
fi