Changed files:
ntp.conf -> 1.3
ntp.init -> 1.6
ntp.sysconfig -> 1.2
+#
+# Default ntp stratum 1 servers:
+#
+# server ntp.nasa.gov
+# server clock.isc.org
#
# Undisciplined Local Clock. This is a fake driver intended for backup
start)
# Check if the service is already running?
if [ ! -f /var/lock/subsys/ntp ]; then
- # Adjust time to make life easy for ntp
- run_cmd "Syncing time for ntp" /usr/sbin/ntpdate -o 1 ntp.nasa.gov clock.isc.org
+ if is_yes "$SYNC_TIME"; then
+ # Adjust time to make life easy for ntp
+ run_cmd "Syncing time for ntp" /usr/sbin/ntpdate $NTPDATE_OPTIONS $NTPDATE_SERVERS
+ fi
msg_starting ntp
daemon ntpd -c /etc/ntp/ntp.conf
RETVAL=$?
# Define services nice level
SERVICE_RUN_NICE_LEVEL="+1"
+
+# Sync time at startup
+SYNC_TIME=no
+NTPDATE_OPTIONS="-o 1"
+NTPDATE_SERVERS="ntp.nasa.gov clock.isc.org"