Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 4d93641560229e37c818c739e9ab6c55 > scriptlet

cpudyn-1.0.1-2.amd64.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
	{
if [ -f /var/lock/subsys/cpudynd ]; then
/sbin/service cpudynd stop 1>&2 || :;
fi };	/sbin/chkconfig --del cpudynd
fi

POSTIN

/bin/sh
/sbin/chkconfig --add cpudynd
{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/cpudynd ] && . /etc/sysconfig/cpudynd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/cpudynd ]; then
/sbin/service cpudynd restart 1>&2 || :;
else
echo 'Run "/sbin/service cpudynd start" to start cpudynd service.'
fi
fi };