misc/177089: ntpd startup script does not work well
Maurizio Giunti
giunti at mgshareware.com
Mon Mar 18 21:50:00 UTC 2013
>Number: 177089
>Category: misc
>Synopsis: ntpd startup script does not work well
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Mar 18 21:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Maurizio Giunti
>Release: 9.1 amd64
>Organization:
MGShareware
>Environment:
FreeBSD deathstar.homegiunti 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Calling /etc/rc.d/ntpd stop issue an error "ntpd not running? (check /var/run/ntpd.pid)." but ntpd is active!
# /etc/rc.d/ntpd start
Starting ntpd.
# ps auxww | grep ntpd
root 2577 0.5 0.1 22196 4052 ?? Ss 10:37PM 0:00.04 /usr/sbin/ntpd -c /etc/ntp.conf -L
# cat /var/run/ntpd.pid
cat: /var/run/ntpd.pid: No such file or directory
# /etc/rc.d/ntpd stop
ntpd not running? (check /var/run/ntpd.pid).
But ntpd is actually running:
# ps auxww | grep ntpd
root 2577 0.0 0.1 22196 4064 ?? Ss 10:37PM 0:00.06 /usr/sbin/ntpd -c /etc/ntp.conf -L
>How-To-Repeat:
Enable ntpd in your /etc/rc.conf file with
echo "ntpd_enable='YES'" >> /etc/rc.conf
Start ntpd with
/etc/rc.d/ntpd start
Than stop it with
/etc/rc.d/ntpd stop
You get the error "ntpd not running? (check /var/run/ntpd.pid)."
Use
ps auxww | grep ntpd
to check that NTPD is actually running.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list