From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 2 21:36:28 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BEA88315 for ; Thu, 2 Apr 2015 21:36:28 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8ACAB9F1 for ; Thu, 2 Apr 2015 21:36:28 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t32LaSer082747 for ; Thu, 2 Apr 2015 21:36:28 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199127] rc.d/ntpd: user-set ntpd_flags stomps over rc-defined ones (pidfile, driftfile) Date: Thu, 02 Apr 2015 21:36:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 9.2-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jdc@koitsu.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2015 21:36:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=199127 Bug ID: 199127 Summary: rc.d/ntpd: user-set ntpd_flags stomps over rc-defined ones (pidfile, driftfile) Product: Base System Version: 9.2-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: jdc@koitsu.org Issue: Use of ntpd_flags in /etc/rc.conf results in completely broken behaviour when ntpd starts. The most common issue is that there is no longer a pidfile associated with ntpd, as well as other problems. This is caused by a design/logic problem in etc/rc.d/ntpd which I have not yet worked out. I am certain it must be easy/simple, and hoping someone in the FreeBSD team can figure it out easier than I can. Reproducing: rc.conf contains following settings: ntpd_enable="yes" ntpd_config="/conf/ME/ntp.conf" ntpd_sync_on_start="yes" Process starts as: /usr/sbin/ntpd -g -c /conf/ME/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift Add the following line to rc.conf: ntpd_flags="-4" Process starts as: /usr/sbin/ntpd -g -c /conf/ME/ntp.conf -4 Note missing -p and -f. This causes lots of problems (like service/rc scripts saying "ntpd: no such pid", etc.). This is on a stable/9 system (9.3-STABLE, which is not a choice in the Bugzilla pulldown for some reason). No idea if stable/10 has this fixed (haven't looked, but if it has, it should be MFC'd). Footnote: this may or may not somehow be related to Bug 106927. -- You are receiving this mail because: You are the assignee for the bug.