Essential DA crons

Guillermo

Verified User
Joined
May 20, 2006
Messages
95
Location
The Netherlands
I have accidentaly deleted some crons.
Does DA use essential crons? Because the bandwith used, which is shown on my admin panel. is still the same for 5 days in a row.
 
Hello,

You should have a template file on your server that has a list of the DA crontab entries:

/usr/local/directadmin/scripts/directadmin_cron

If /etc/cron.d/directadmin_cron has been changed, you should simply be able to run the below commands to reset it. Note that this is untested and I can't guarantee it will help.
Code:
cp /usr/local/directadmin/scripts/directadmin_cron /etc/cron.d/directadmin_cron

chmod 644 /etc/cron.d/directadmin_cron

/sbin/service crond restart
Hopefully that will help.

Good luck, Phil.
 
You're right :( . It's going to take some sysadmin some time to figure it out ...

Is there a lockfile for crond ? I don't have time to look right now, but read man crond if it exists on your server.

I know this isn't generally a good idea, and won't tell you what happened even if it works, but have you tried a reboot?

If you have, and it's still not working, then there's got to be a lock file somewhere.

Jeff
 
Guillermo said:
I get this when i check for the status.

# service crond status
crond dead but subsys locked

Try this:
service crond stop
service crond start
tail /var/log/messages
tail /var/log/cron
It should give you some hints.
 
Back
Top