Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 35822c88fc9f66d9e306760842151e18 > scriptlet

zebra-xs26-bgpd-2.11-4.amd64.rpm

PREUN

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

POSTIN

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