Date: Mon, 18 Mar 2013 21:42:27 GMT From: Maurizio Giunti <giunti@mgshareware.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/177089: ntpd startup script does not work well Message-ID: <201303182142.r2ILgRJv026574@red.freebsd.org> Resent-Message-ID: <201303182150.r2ILo0T8023935@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303182142.r2ILgRJv026574>