Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 67d94e94a9414f23e78685973fbcc666 > scriptlet

dictd-1.10.4-3.amd64.rpm

PREUN

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

POSTIN

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