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 :