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
[EMAIL PROTECTED]

####  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" [EMAIL PROTECTED]
 */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" [EMAIL PROTECTED]

## 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 ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to