cleaner time synch crontab
[feisty_meow.git] / infobase / configuration / cron / time_synch.crontab
index 17cdd55492c6a9c33eb4aa34f625830b09e10d3a..4d58fc58f538296828976762582d5b50758917cf 100644 (file)
@@ -1,14 +1,20 @@
 
+##############
+
 #[time synch]
 
-# standard to synch to local machine.
-#0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/sbin/sntp -P no -r greendragon &>>/tmp/${CRONUSER}-cron-time_synch.log
-#or
-0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/bin/rdate -s -n greendragon &>>/tmp/${CRONUSER}-cron-time_synch.log
-# -n is nntp which may not work with govt servers.
+LOCAL_TIME_SERVER=greendragon
+
+##############
+
+# note: uncomment one of the below (client or server).
+
+# standard version synchs to a local machine.  can be used on a network
+# to get time from central host.
+#*/4 * * * * /usr/sbin/ntpdate $LOCAL_TIME_SERVER &>>/tmp/${CRONUSER}-cron-time_synch.log
+
+# the central host machine uses this version, to synch time externally.
+#0 0,4,8,12,16,20 * * * /usr/bin/rdate -s time.nist.gov &>>/tmp/${CRONUSER}-cron-time_synch.log
 
-# one machine on the network uses this version, to synch externally.
-#0 0,4,8,12,16,20 * * * /usr/sbin/sntp -P no -r time.nist.gov &>>/tmp/${CRONUSER}-cron-time_synch.log
-#or
-0 0,4,8,12,16,20 * * * /usr/bin/rdate -s time-c.nist.gov &>>/tmp/${CRONUSER}-cron-time_synch.log
+##############