summaryrefslogtreecommitdiffstats
path: root/source/n/ntp/rc.ntpd
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/ntp/rc.ntpd')
-rw-r--r--source/n/ntp/rc.ntpd10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/n/ntp/rc.ntpd b/source/n/ntp/rc.ntpd
index d1ad44841..9d1e3e88f 100644
--- a/source/n/ntp/rc.ntpd
+++ b/source/n/ntp/rc.ntpd
@@ -11,9 +11,9 @@ ntpd_start() {
# Stop ntpd:
ntpd_stop() {
echo -n "Stopping NTP daemon..."
- if [ -r /var/run/ntpd.pid ]; then
- kill -HUP $(cat /var/run/ntpd.pid)
- rm -f /var/run/ntpd.pid
+ if [ -r /run/ntpd.pid ]; then
+ kill -HUP $(cat /run/ntpd.pid)
+ rm -f /run/ntpd.pid
else
killall -HUP -q ntpd
fi
@@ -29,8 +29,8 @@ ntpd_restart() {
# Check if ntpd is running
ntpd_status() {
- if [ -e /var/run/ntpd.pid ]; then
- echo "ntpd is running as pid $(cat /var/run/ntpd.pid)."
+ if [ -e /run/ntpd.pid ]; then
+ echo "ntpd is running as pid $(cat /run/ntpd.pid)."
else
echo "ntpd is stopped."
exit 1