#!/bin/sh## $FreeBSD$## PROVIDE: ntpd# REQUIRE: DAEMON ntpdate FILESYSTEMS devfs# BEFORE: LOGIN# KEYWORD: nojail shutdown. /etc/rc.subrname="ntpd"rcvar="ntpd_enable"command="/usr/sbin/${name}"pidfile="/var/run/${name}.pid"start_precmd="ntpd_precmd"load_rc_config $namentpd_precmd(){ rc_flags="-c ${ntpd_config} ${ntpd_flags}" if checkyesno ntpd_sync_on_start; then rc_flags="-g $rc_flags" fi if [ -z "$ntpd_chrootdir" ]; then return 0; fi # If running in a chroot cage, ensure that the appropriate files # exist inside the cage, as well as helper symlinks into the cage # from outside. # # As this is called after the is_running and required_dir checks # are made in run_rc_command(), we can safely assume ${ntpd_chrootdir} # exists and ntpd isn't running at this point (unless forcestart # is used). # if [ ! -c "${ntpd_chrootdir}/dev/clockctl" ]; then rm -f "${ntpd_chrootdir}/dev/clockctl" ( cd /dev ; /bin/pax -rw -pe clockctl "${ntpd_chrootdir}/dev" ) fi ln -fs "${ntpd_chrootdir}/var/db/ntp.drift" /var/db/ntp.drift # Change run_rc_commands()'s internal copy of $ntpd_flags # rc_flags="-u ntpd:ntpd -i ${ntpd_chrootdir} $rc_flags"}run_rc_command "$1"
Sep 15 09:27:54 opnsense ntpdate[67572]: adjust time server 129.250.35.251 offset -0.003927 secSep 15 09:27:54 opnsense ntp: Successfully synced time after 1 attempts.Sep 15 09:27:54 opnsense ntp: Starting NTP Daemon.Sep 15 09:27:54 opnsense ntpd[51584]: ntpd 4.2.8p3@1.3265-o Fri Sep 11 22:45:50 UTC 2015 (1): StartingSep 15 09:27:54 opnsense ntpd[51584]: Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pidSep 15 09:27:54 opnsense ntpd[51860]: proto: precision = 0.056 usec (-24)Sep 15 09:27:54 opnsense ntpd[51860]: restrict: 'monitor' cannot be disabled while 'limited' is enabledSep 15 09:27:54 opnsense ntpd[51860]: Listen and drop on 0 v6wildcard [::]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen and drop on 1 v4wildcard 0.0.0.0:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 2 vmx0 [fe80::250:56ff:fe8d:3fd0%1]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 3 vmx0 82.246.46.14:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 4 vmx0 [2a01:e35:2f62:e0e0:250:56ff:fe8d:3fd0]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 5 vmx1 192.168.1.1:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 6 vmx1 [fe80::1:1%2]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 7 vmx2 192.168.1.240:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 8 vmx2 [fe80::250:56ff:fe8d:23a9%3]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 9 lo0 127.0.0.1:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 10 lo0 [::1]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listen normally on 11 lo0 [fe80::1%7]:123Sep 15 09:27:54 opnsense ntpd[51860]: Listening on routing socket on fd #32 for interface updatesSep 15 11:50:00 opnsense ntpdate[71143]: adjust time server 129.250.35.251 offset 0.000458 secSep 15 11:50:00 opnsense ntp: Successfully synced time after 1 attempts.Sep 15 11:50:00 opnsense ntp: Starting NTP Daemon.Sep 15 11:50:00 opnsense ntpd[81955]: ntpd 4.2.8p3@1.3265-o Fri Sep 11 22:45:50 UTC 2015 (1): StartingSep 15 11:50:00 opnsense ntpd[81955]: Command line: /usr/local/sbin/ntpd -g -c /var/etc/ntpd.conf -p /var/run/ntpd.pidSep 15 11:50:00 opnsense ntpd[82140]: proto: precision = 0.055 usec (-24)Sep 15 11:50:00 opnsense ntpd[82140]: restrict: 'monitor' cannot be disabled while 'limited' is enabledSep 15 11:50:00 opnsense ntpd[82140]: Listen and drop on 0 v6wildcard [::]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen and drop on 1 v4wildcard 0.0.0.0:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 2 vmx0 [fe80::250:56ff:fe8d:3fd0%1]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 3 vmx0 82.246.46.14:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 4 vmx0 [2a01:e35:2f62:e0e0:250:56ff:fe8d:3fd0]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 5 vmx1 192.168.1.1:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 6 vmx1 [fe80::1:1%2]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 7 vmx2 192.168.1.240:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 8 vmx2 [fe80::250:56ff:fe8d:23a9%3]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 9 lo0 127.0.0.1:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 10 lo0 [::1]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listen normally on 11 lo0 [fe80::1%7]:123Sep 15 11:50:00 opnsense ntpd[82140]: Listening on routing socket on fd #32 for interface updates
So it's running, but won't find the service in the GUI. Let me check the code to see if it does anything weird.