Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Apr 1998 17:36:24 -0600 (CST)
From:      Joe Greco <jgreco@solaria.sol.net>
To:        current@FreeBSD.ORG
Subject:   Cron problems?
Message-ID:  <199804012336.RAA22087@aurora.sol.net>

next in thread | raw e-mail | index | archive | help
FYI - 

FreeBSD mnemom.sol.net 3.0-980331-SNAP FreeBSD 3.0-980331-SNAP #1: Tue Mar 31 06:29:11 CST 1998 root@mnemom.sol.net:/usr/src/sys/compile/SMP-MNEMOM  i386

Dual P200 box with 512MB RAM

mnemom# crontab -u news -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.sOoyuey745 installed on Wed Apr  1 17:17:38 1998)
# (Cron version -- $Id: crontab.c,v 1.11 1997/09/15 06:39:15 charnier Exp $)
*/2 * * * *  dbin/dspoolout >> log/dspoolout.log 2>&1
*/5 * * * *  (cd adm; for i in quadhr.*; do ./$i; done) >>log/daily.log 2>&1
50 * * * *      (cd adm; for i in hourly.*; do ./$i; done) >>log/daily.log 2>&1
40 2 * * *      (cd adm; for i in daily.*; do ./$i; done) >>log/daily.log 2>&1
30 2 * * 1,4    (cd adm; for i in biweekly.*; do ./$i; done) >>log/daily.log 2>&1

I am getting really odd results.  I have run cron in debug mode, and without
looking at the code, it seems to me that it's miscalculating the "sleep"
interval.

>From "cron" debug output...

user [root:0:0:...] cmd="   adjkerntz -a"
user [root:0:0:...] cmd="   periodic monthly 2>&1 | sendmail root"
user [root:0:0:...] cmd="   periodic weekly 2>&1 | sendmail root"
user [root:0:0:...] cmd="   periodic daily 2>&1 | sendmail root"
user [root:0:0:...] cmd="newsyslog"
user [root:0:0:...] cmd="/usr/libexec/atrun"
user [news:8:8:...] cmd="(cd adm; for i in biweekly.*; do ./$i; done) >>log/daily.log 2>&1"
user [news:8:8:...] cmd="(cd adm; for i in daily.*; do ./$i; done) >>log/daily.log 2>&1"
user [news:8:8:...] cmd="(cd adm; for i in hourly.*; do ./$i; done) >>log/daily.log 2>&1"
user [news:8:8:...] cmd="(cd adm; for i in quadhr.*; do ./$i; done) >>log/daily.log 2>&1"
user [news:8:8:...] cmd="dbin/dspoolout >> log/dspoolout.log 2>&1"
[517] TargetTime=891474000, sec-to-wait=596
[517] sleeping for 596 seconds

I'll probably haul out the sources later and try to figure out how it
determines that sleeping-for value.  It's clearly wrong.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/342-4847

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804012336.RAA22087>