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