From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 18 21:50:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BEADE200 for ; Mon, 18 Mar 2013 21:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 8D5E2EE1 for ; Mon, 18 Mar 2013 21:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2ILo0Yk023936 for ; Mon, 18 Mar 2013 21:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2ILo0T8023935; Mon, 18 Mar 2013 21:50:00 GMT (envelope-from gnats) Resent-Date: Mon, 18 Mar 2013 21:50:00 GMT Resent-Message-Id: <201303182150.r2ILo0T8023935@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Maurizio Giunti Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AE92AD2E for ; Mon, 18 Mar 2013 21:42:27 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A0C07DC1 for ; Mon, 18 Mar 2013 21:42:27 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2ILgR1w026575 for ; Mon, 18 Mar 2013 21:42:27 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r2ILgRJv026574; Mon, 18 Mar 2013 21:42:27 GMT (envelope-from nobody) Message-Id: <201303182142.r2ILgRJv026574@red.freebsd.org> Date: Mon, 18 Mar 2013 21:42:27 GMT From: Maurizio Giunti To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: misc/177089: ntpd startup script does not work well X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2013 21:50:00 -0000 >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: