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.ntpd7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/n/ntp/rc.ntpd b/source/n/ntp/rc.ntpd
index 7cf3d50b0..d1ad44841 100644
--- a/source/n/ntp/rc.ntpd
+++ b/source/n/ntp/rc.ntpd
@@ -3,9 +3,8 @@
# Start ntpd:
ntpd_start() {
- CMDLINE="/usr/sbin/ntpd -g"
- echo -n "Starting NTP daemon: $CMDLINE"
- $CMDLINE -p /var/run/ntpd.pid
+ echo -n "Starting NTP daemon: /usr/sbin/ntpd -g -u ntp:ntp"
+ /usr/sbin/ntpd -g -u ntp:ntp
echo
}
@@ -31,7 +30,7 @@ ntpd_restart() {
# Check if ntpd is running
ntpd_status() {
if [ -e /var/run/ntpd.pid ]; then
- echo "ntpd is running."
+ echo "ntpd is running as pid $(cat /var/run/ntpd.pid)."
else
echo "ntpd is stopped."
exit 1