X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=infobase%2Fconfiguration%2Fcron%2Ftime_synch.crontab;h=7b5fd6feaeb905978f1cfa289b19740fd7f41ca2;hb=95d216b2381107474bea0a65a915936a5402df0f;hp=ef5a747ead3573a2eac8a10340dd44a8b8efd983;hpb=a5ac082e97881c155ce3693deb4f81f861243d09;p=feisty_meow.git diff --git a/infobase/configuration/cron/time_synch.crontab b/infobase/configuration/cron/time_synch.crontab index ef5a747e..7b5fd6fe 100644 --- a/infobase/configuration/cron/time_synch.crontab +++ b/infobase/configuration/cron/time_synch.crontab @@ -1,18 +1,18 @@ -SHELL=/bin/bash +############## -# m h dom mon dow command +#[time synch] -#[time synch crontab] +LOCAL_TIME_SERVER=greendragon -# 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 -or -0,4,8,12,16,20,24,28,32,36,40,44,48,52,56 * * * * /usr/bin/rdate -s -n greendragon -# -n is nntp which may not work with govt servers. +# 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 -# 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 -#or -0 0,4,8,12,16,20 * * * /usr/bin/rdate -s time-c.nist.gov +############## + +# 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 + +##############