From owner-freebsd-questions@FreeBSD.ORG Tue Dec 4 05:26:05 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28FA416A41B for ; Tue, 4 Dec 2007 05:26:05 +0000 (UTC) (envelope-from support@monkeybrains.net) Received: from ape.monkeybrains.net (ape.monkeybrains.NET [208.69.40.11]) by mx1.freebsd.org (Postfix) with ESMTP id 189D313C467 for ; Tue, 4 Dec 2007 05:26:05 +0000 (UTC) (envelope-from support@monkeybrains.net) Received: from monchichi.monkeybrains.net (adsl-75-36-249-166.dsl.pltn13.sbcglobal.net [75.36.249.166]) (authenticated bits=0) by ape.monkeybrains.net (8.14.1/8.14.1) with ESMTP id lB44q5V8067192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Dec 2007 20:52:05 -0800 (PST) (envelope-from support@monkeybrains.net) Message-ID: <4754DD17.6050701@monkeybrains.net> Date: Mon, 03 Dec 2007 20:52:39 -0800 From: "Support (Rudy)" User-Agent: Thunderbird 2.0.0.9 (X11/20071122) MIME-Version: 1.0 To: Kevin Kinsey References: <4754C19E.5060708@monkeybrains.net> <4754CD5B.90605@daleco.biz> In-Reply-To: <4754CD5B.90605@daleco.biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on pita.monkeybrains.net X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: cron pile up! Lot's of "cron: running job (cron)" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Dec 2007 05:26:05 -0000 Below is part of the cron... Seems like any random cronjob can get clogged up... load varies from 0.2 to 1.0 on this dual-core box. I rebooted the box -- cron's continue to slowly pile up. One of the cronjobs that is 'stuck' is this one: /root/bin/raid-status.sh which can be found here: http://www.monkeybrains.net/~rudy/example/raid_status.html Forgot to mention, I am running: 6.2-STABLE FreeBSD 6.2-STABLE #3: Thu May 31 01:18:15 PDT 2007 OH, ps shows this: 58383 ?? D 0:00.00 cron: running job (cron) 58384 ?? IVs 0:00.00 cron: running job (cron) /var/log/cron has this entry: Dec 3 20:16:00 pita /usr/sbin/cron[58384]: (root) CMD (/root/bin/raid-status.sh CRON) BUT there is no 'raid-status.sh' stuck in the "ps axw". Seems like the vfork set off the cronjob, it ran, but then cron didn't 'stop' executing. Any debuggin tips? Rudy --------------------------------------------------- PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/root/bin MAILTO=cron@example.net #### Root Cron for example.net #### ################################## # check demons, limit sendmail, generate fwdmail aliases ################################## */10 * * * * /root/bin/10minutes.mail.sh | mail -E -s "[ERROR] example.monkeybrains.net" cron@example.net */16 * * * * /root/bin/raid-status.sh CRON ################################## # Anti-Spam measures ################################## 1 5 * * * /usr/local/etc/mail/blacklist2access.pl | /usr/bin/mail -E -s "[INFO] mail: blacklist2access script" cron@example.net ## update the rules/balcklists list 40 5 * * * /usr/local/bin/sa-update --allowplugins --gpgkey D1C035168C1EBC08464946DA258CDB3ABDE9DC10 --channel saupdates.openprotect.com && /usr/local/etc/rc.d/sa-spamd restart 48 5 * * * /usr/local/bin/sa-update --channel updates.spamassassin.org && /usr/local/etc/rc.d/sa-spamd restart ## and anti-virus 49 */2 * * * su -m clamav -c '/usr/local/bin/freshclam --quiet' @weekly /usr/bin/find /var/tmp/ -maxdepth 1 -and -path "*clamav*" -and -type d -and \! -newermt '2 days ago' -and -delete ####################################################################### # Clean stuff up # old trash, viruses, old spam, and authdaemon cache ####################################################################### ## squirrelmail attachments 45 3 * * * /usr/bin/find /var/spool/squirrelmail/attach \! -newermt '9 day ago' -delete ## stuff marked as Trash or in Trash folder 55 3 * * * /usr/bin/find /home /data/virtual/ -path "*/Maildir/*" -and -name "*:*T" -and \! -newermt '2 day ago' -delete 35 3 * * * /usr/bin/find /home/ /data/virtual/ -path "*/Maildir/.Trash/*" -name "*net*" -and \! -newermt '4 day ago' -delete ... etc ...