From owner-freebsd-questions@freebsd.org Mon Feb 6 15:01:36 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 B2024CD3638 for ; Mon, 6 Feb 2017 15:01:36 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from inet08.hamilton.harte-lyne.ca (inet08.hamilton.harte-lyne.ca [216.185.71.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "inet08.hamilton.harte-lyne.ca", Issuer "CA_HLL_ISSUER_2016" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 861BC1B31 for ; Mon, 6 Feb 2017 15:01:36 +0000 (UTC) (envelope-from byrnejb@harte-lyne.ca) Received: from localhost (localhost [127.0.0.1]) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTP id 9465C61F1C for ; Mon, 6 Feb 2017 10:01:29 -0500 (EST) X-Virus-Scanned: amavisd-new at harte-lyne.ca Received: from inet08.hamilton.harte-lyne.ca ([127.0.0.1]) by localhost (inet08.hamilton.harte-lyne.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kdxorWHmQifh for ; Mon, 6 Feb 2017 10:01:28 -0500 (EST) Received: from webmail.harte-lyne.ca (inet04.hamilton.harte-lyne.ca [216.185.71.24]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by inet08.hamilton.harte-lyne.ca (Postfix) with ESMTPSA id CAA15621DC for ; Mon, 6 Feb 2017 10:01:27 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=harte-lyne.ca; s=dkim_hll; t=1486393287; bh=uN4s9k7BrYIHwLPx2xzUVsgFTikmcMVUVvEBAswQwFY=; h=Date:Subject:From:To:Reply-To; b=BblYJjRstkZSRQ3amt9dfKJt6pfGLtBPJ5DMzUSH3/4nQHg/Ox0qT+ZeFqeUaVmkz WF4d7p0cdr1zvK+YTzKn11wo0ip3BuNMPVR7mtnSAU1v3UnfvvxZrgqa39cd0SkQv2 xo1cuY75kXprjOQDeUHajBYnb43G6Ag41CuAhUmMdVAtafLGBTAz/Q533wKwO7HV5j 8bcEAT6LhhlGnyvCeg+CnZUGOpQAbkD736OH4Ec2OGr9RHoQzXCq7o6UIhkB+r7pEo sy6qKVjIXTGfDUM4Ggpd9fBqfI04sMluMwMIV5BvGPQY7AbUR4n/NMFqrZEpE0aRgW j67DS2OPwSEzg== Received: from 216.185.71.44 (SquirrelMail authenticated user byrnejb_hll) by webmail.harte-lyne.ca with HTTP; Mon, 6 Feb 2017 10:01:27 -0500 Message-ID: <64a16a3bb8e0280170201b96b4042825.squirrel@webmail.harte-lyne.ca> Date: Mon, 6 Feb 2017 10:01:27 -0500 Subject: FreeBSD-10.3 No ntpd.pid file created From: "James B. Byrne" To: freebsd-questions@freebsd.org Reply-To: byrnejb@harte-lyne.ca User-Agent: SquirrelMail/1.4.22-4.el6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal 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: Mon, 06 Feb 2017 15:01:36 -0000 We have a 10.3 BHyve virtual guest that is running ntpd. However, when ntpd starts it is not creating a pid file and so normal service commands do not work. ntpd is part of the base system and we have not altered any of the rc scripts or to our knowledge changed any permissions. The problem was first encountered during a series of ntpd stops and starts whilst debugging a problem with the samba service also running on this guest. At that time restarting the guest seemed to clear the problem. However, restarting this host has not fixed the issue in the current instance. There is no ntpd.pid file anywhere on the system. If I create a /var/run/ntpd.pid file manually and echo the exact pid of the running ntpd instance then the service command works until I use it to stop ntpd. Then when I restart the ntpod service the old pid value is not changed and service ntpd status reports: service ntpd status kern.timecounter.hardware: ACPI-fast -> ACPI-fast kern.timecounter.hardware: ACPI-fast -> ACPI-fast ntpd is not running. Any help solving this would be much appreciated. -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3