Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/ntpd
| Show All 22 Lines | |||||
| _ntp_default_dir="/var/db/ntp" | _ntp_default_dir="/var/db/ntp" | ||||
| _ntp_default_driftfile="${_ntp_default_dir}/ntpd.drift" | _ntp_default_driftfile="${_ntp_default_dir}/ntpd.drift" | ||||
| _ntp_old_driftfile="/var/db/ntpd.drift" | _ntp_old_driftfile="/var/db/ntpd.drift" | ||||
| pidfile="${_ntp_default_dir}/${name}.pid" | pidfile="${_ntp_default_dir}/${name}.pid" | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # doesn't make sense to run in a svcj: nojail keyword | |||||
| ntpd_svcj="NO" | |||||
| leapfile_is_disabled() { | leapfile_is_disabled() { | ||||
| # Return true (0) if automatic leapfile handling is disabled. | # Return true (0) if automatic leapfile handling is disabled. | ||||
| case "$ntp_db_leapfile" in | case "$ntp_db_leapfile" in | ||||
| [Nn][Oo] | [Nn][Oo][Nn][Ee] ) | [Nn][Oo] | [Nn][Oo][Nn][Ee] ) | ||||
| return 0;; | return 0;; | ||||
| * ) | * ) | ||||
| return 1;; | return 1;; | ||||
| esac | esac | ||||
| ▲ Show 20 Lines • Show All 209 Lines • Show Last 20 Lines | |||||