Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2017 10:01:27 -0500
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        freebsd-questions@freebsd.org
Subject:   FreeBSD-10.3 No ntpd.pid file created 
Message-ID:  <64a16a3bb8e0280170201b96b4042825.squirrel@webmail.harte-lyne.ca>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64a16a3bb8e0280170201b96b4042825.squirrel>