From owner-freebsd-questions@freebsd.org Tue Feb 7 04:53:19 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53500CD4050 for ; Tue, 7 Feb 2017 04:53:19 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BC8F6F73 for ; Tue, 7 Feb 2017 04:53:18 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Tue, 07 Feb 2017 05:55:55 +0100 Received: from r56.edvax.de (port-92-195-126-61.dynamic.qsc.de [92.195.126.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id DE5813CBF9; Tue, 7 Feb 2017 05:53:06 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v174r6JL001952; Tue, 7 Feb 2017 05:53:06 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 7 Feb 2017 05:53:05 +0100 From: Polytropon To: byrnejb@harte-lyne.ca Cc: "James B. Byrne via freebsd-questions" Subject: Re: FreeBSD-10.3 No ntpd.pid file created Message-Id: <20170207055305.59b8b819.freebsd@edvax.de> In-Reply-To: <9847cbcfdba24ab60d48378196d40a6f.squirrel@webmail.harte-lyne.ca> References: <9847cbcfdba24ab60d48378196d40a6f.squirrel@webmail.harte-lyne.ca> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with A2CAD6A356D X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.3323 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 04:53:19 -0000 On Mon, 6 Feb 2017 16:42:22 -0500, James B. Byrne via freebsd-questions wrote: > I am looking at the process list entries for ntpd on two FreeBSD 10.3 > systems and I see this: > > system 1: > > root 1187 0.0 0.4 32376 18172 - Ss > 9:42AM 0:02.03 /usr/sbin/ntpd -g -c /etc/ntp.conf > > system 2: > > root 1024 0.0 0.0 26124 18044 - Ss 21Nov16 > 3:56.36 /usr/sbin/ntpd -g -c /etc/ntp.conf -p /var/run/ntpd.pid > > Somehow system 1 is starting ntpd without passing the pidfile > argument. However, I have diffed the /etc/rc.d/ntpd files from both > systems against each other and there are no differences. So, how can > this be? Check /etc/rc.conf as well. There is a _flags variable that can affect ntpd startup. You will also find them in the sourced file /etc/defaults/rc.conf which might differ as well between versions: ntpd_enable="NO" ntpd_program="/usr/sbin/ntpd" ntpd_config="/etc/ntp.conf" ntpd_sync_on_start="NO" high ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift" In this example (FreeBSD 8), a PID file is explicitely mentioned. If that default differs (or if it is overwritten in rc.conf), the creation of a PID file might be omitted. See "man ntpd" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...