PREIN
/bin/sh
/usr/sbin/groupadd -g 38 ntp 2> /dev/null || :
/usr/sbin/useradd -u 38 -g 38 -s /sbin/nologin -M -r -d /etc/ntp ntp 2>/dev/null || :
PREUN
/bin/sh
if [ $1 = 0 ]; then
service ntpd stop > /dev/null 2>&1
/sbin/chkconfig --del ntpd
fi
:
POSTIN
/bin/sh
/sbin/chkconfig --add ntpd
:
POSTUN
/bin/sh
if [ "$1" -ge "1" ]; then
service ntpd condrestart > /dev/null 2>&1
fi
:
POSTTRANS
/bin/sh
# Make sure SELinux contexts are correct.
[ -x /sbin/restorecon ] && /sbin/restorecon /sbin/ntpd /sbin/ntpdate
: