X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Fconfiguration%2Fcron%2Ftime_synch.crontab;h=6b064f5c51088f46252b32cdd9b1190bd2031b85;hb=de0da7f2f7958d4ba652ff2ef5c79991700141ac;hp=17cdd55492c6a9c33eb4aa34f625830b09e10d3a;hpb=4cfdd08aaad4926a3133d96076d3e4cae78adb3a;p=feisty_meow.git diff --git a/infobase/configuration/cron/time_synch.crontab b/infobase/configuration/cron/time_synch.crontab index 17cdd554..6b064f5c 100644 --- a/infobase/configuration/cron/time_synch.crontab +++ b/infobase/configuration/cron/time_synch.crontab @@ -1,14 +1,32 @@ -#[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. - -# 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 +############## + +#[time_synch_suite] + +LOCAL_TIME_SERVER=greendragon + +############## + +# note: uncomment only one of the below (local client, local server, or remote client). + +############## + +#[update_system_time_local_client] +# 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 + +############## + +#[update_system_time_local_server] +# 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 + +############## + +#[update_system_time_remote_client] +# synchronize the time with a real ntp server. +#42 0,4,8,12,16,20 * * * (source $FEISTY_MEOW_APEX/scripts/core/launch_feisty_meow.sh; bash $FEISTY_MEOW_APEX/scripts/system/update_system_time.sh ) &>/tmp/${CRONUSER}-cron-update_system_time.log + +##############