Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > ae4e0a6a8b902a38cedb0c71ddc019a2 > scriptlet

ntp-4.2.6p3-0.1.rc10.fc14.i686.rpm

PREUN

/bin/sh
if [ "$1" -eq 0 ]; then
	systemctl disable ntpd.service &> /dev/null
	systemctl stop ntpd.service &> /dev/null
	/sbin/service ntpd stop &> /dev/null
	/sbin/chkconfig --del ntpd
fi
:

POSTIN

/bin/sh
/sbin/chkconfig --add ntpd
/sbin/chkconfig ntpd &> /dev/null &&
	systemctl enable ntpd.service &> /dev/null ||
	systemctl daemon-reload &> /dev/null
:

POSTUN

/bin/sh
if [ "$1" -ge 1 ]; then
	systemctl try-restart ntpd.service &> /dev/null ||
		/sbin/service ntpd condrestart &> /dev/null
fi
: