172N/A# The contents of this file are subject to the terms of the 172N/A# Common Development and Distribution License (the "License"). 172N/A# You may not use this file except in compliance with the License. 172N/A# See the License for the specific language governing permissions 172N/A# and limitations under the License. 172N/A# When distributing Covered Code, include this CDDL HEADER in each 172N/A# If applicable, add the following below this CDDL HEADER, with the 172N/A# fields enclosed by brackets "[]" replaced with your own identifying 172N/A# information: Portions Copyright [yyyy] [name of copyright owner] 5359N/A# Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved. 172N/A echo "SMF framework variables are not initialized." 172N/A# Disable globbing to prevent privilege escalations by users authorized 172N/A# to set property values for the NTP service. 7414N/A# Do we want to run without setting the clock? If not and we don't have 7414N/A# the priv to set the clock, exit. If so, remove the priv and 7414N/A# continue on. Set env variable to tell ntpd to ignore EPERM errors. 7414N/A echo "Error: Insufficient privilege to adjust the system clock." \
7414N/A " Set the disable_local_time_adjustment property to run anyway." 172N/A# Build the command line flags 432N/A# We allow a step larger than the panic value of 17 minutes only 4484N/A# once when ntpd starts up. If always_allow_large_step is true, 172N/A# then we allow this each time ntpd starts. Otherwise, we allow 172N/A# it only the very first time ntpd starts after a boot. We 172N/A# check that by making ntpd write its pid to a file in /var/run. 172N/A# Auth was off by default in xntpd now the default is on. Better have a way 432N/A# to turn it off again. Also check for the obsolete "authentication" keyword. 172N/A /^[ \t]*authentication[ \t]+no/ { 172N/A# Set up logging if requested. 172N/A# We used to support the slewalways keyword, but that was a Sun thing 172N/A# and not in V4. Look for "slewalways yes" and set the new slew option. 172N/A /^[ \t]*slewalways[ \t]+yes/ { 4484N/A# If slew_always is set to true, then the large offset after a reboot 4484N/A# might take a very long time to correct the clock. Optionally allow 4484N/A# a step once after a reboot if slew_always is set when allow_step_at_boot 172N/A# Start the daemon. If debugging is requested, put it in the background, 172N/A# since it won't do it on it's own. 172N/A# Now, wait for the first sync, if requested.