core/networkmanager-dispatcher-ntpd/10-ntpd
2014-08-18 20:49:49 +00:00

27 lines
603 B
Bash
Executable File

#!/bin/bash
if [ -e /sys/fs/cgroup/systemd ]; then
case "$2" in
up)
systemctl start ntpd.service
;;
down)
systemctl stop ntpd.service
;;
esac
else
if [ -e "/etc/rc.d/ntpd" ]; then
case "$2" in
up)
rc.d start ntpd
;;
down)
rc.d stop ntpd
;;
esac
fi
fi