Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > be7fdeb08cfd29cbb028e21ba59944b2 > scriptlet

dnsmasq-2.30-2.amd64.rpm

PREUN

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

POSTIN

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