Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 23d538e3538e3b27ea297a6d0e9f2231 > scriptlet

syslog-ng-1.6.9-1mdv2007.0.i586.rpm

PREUN

/bin/sh
if [ "$1" -eq 0 ] ; then
	if [ -f /var/lock/subsys/syslog-ng ]; then
		/etc/rc.d/init.d/syslog-ng stop
	fi
	/sbin/chkconfig --del syslog-ng
fi

POSTIN

/bin/sh
if [ "$1" -eq 1 ]; then
	/sbin/chkconfig --add syslog-ng
	/sbin/chkconfig syslog-ng off
fi

POSTUN

/bin/sh
if [ "$1" -ge 1 ]; then
	/etc/rc.d/init.d/syslog-ng condrestart
fi