Cron problem

webslum-admin

Verified User
Joined
Sep 23, 2004
Messages
14
Location
Albany, NY
After a recent update through yum, something happened to my cronjobs, and I don't see the directadmin cronjob in /etc/cron.d/directadmin being scanned or read.

I'm unable to find anything relating to how to make sure that those jobs are run regularly beyond adding that directory (/etc/cron.d) to the system crontab myself.

Any input from almost anyone would be appreciated.
 
Is the cron daemon (crond) running?

As root:

# ps waux | grep crond

Jeff
 
These are run as root, I just never cd'ed out of my normal homedir.

clango ryan # ps auxww | grep cron
root 1577 0.0 0.1 1592 632 ? S Aug10 0:03 crond


Yep.

Here is the output of crontab -l:

clango ryan # crontab -l
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

This used to display the directadmin job and the modernbill job, both of which were wiped. I'm working on Modernbill with them, but the directadmin job hasn't run in a day or two apparently.
 
According to "man cron", cron doesn't need anything to run all jobs in /etc/cron.d/; it does that automatically.

Jeff
 
Back
Top