OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /e/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 07-Aug-2003 16:37:28 Branch: HEAD Handle: 2003080715372800 Modified files: openpkg-src/ntp rc.ntp Log: add back again the old 'sleep 30' which is important to make sure cron jobs are not run immediately again on a few seconds backstepping; use a more descriptive comment Summary: Revision Changes Path 1.22 +11 -8 openpkg-src/ntp/rc.ntp ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/ntp/rc.ntp ============================================================================ $ cvs diff -u -r1.21 -r1.22 rc.ntp --- openpkg-src/ntp/rc.ntp 7 Aug 2003 11:35:48 -0000 1.21 +++ openpkg-src/ntp/rc.ntp 7 Aug 2003 14:37:28 -0000 1.22 @@ -37,8 +37,11 @@ rcService ntp enable yes || exit 0 rcService ntp active yes && exit 0 - # on startup, force synchronize local machine - # because ntpd does not skip large time offsets + # under both periodical and daemon mode, synchronize local machine + # once manually -- either to fill the gap between startup time and + # the first run of the cron jobs (periodical mode) or to perform + # a possible large time offset which ntpd does not perform itself + # (daemon mode). case "$ntp_mode" in once | \ daemon | \ @@ -48,7 +51,7 @@ esac # run the NTP daemon for continued synchronization - if [ ".$ntp_mode" = ".daemon" ]; then \ + if [ ".$ntp_mode" = ".daemon" ]; then @l_prefix@/bin/ntpd \ -p @l_prefix@/var/ntp/ntpd.pid \ -f @l_prefix@/var/ntp/ntpd.drift \ @@ -68,15 +71,15 @@ %quarterly -u @l_susr@ rcService ntp enable yes || exit 0 - if [ ".$ntp_mode" = ".quarterly" ] && ntp_once + if [ ".$ntp_mode" = ".quarterly" ] && ntp_once && sleep 30 %hourly -u @l_susr@ rcService ntp enable yes || exit 0 - if [ ".$ntp_mode" = ".hourly" ] && ntp_once + if [ ".$ntp_mode" = ".hourly" ] && ntp_once && sleep 30 %daily -u @l_susr@ rcService ntp enable yes || exit 0 - if [ ".$ntp_mode" = ".daily" ] && ntp_once + if [ ".$ntp_mode" = ".daily" ] && ntp_once && sleep 30 # rotate logfile shtool rotate -f \ @@ -88,9 +91,9 @@ %weekly -u @l_susr@ rcService ntp enable yes || exit 0 - if [ ".$ntp_mode" = ".weekly" ] && ntp_once + if [ ".$ntp_mode" = ".weekly" ] && ntp_once && sleep 30 %monthly -u @l_susr@ rcService ntp enable yes || exit 0 - if [ ".$ntp_mode" = ".monthly" ] && ntp_once + if [ ".$ntp_mode" = ".monthly" ] && ntp_once && sleep 30 @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List [EMAIL PROTECTED]