000-delay causes cron-job runs for long time

Article ID: 2964 
Last Review: Oct,6 2008
Author:
Last updated by: system APPLIES TO:
  • Parallels Pro Control Panel Linux

Additional information

View Knowledge
Knowledge ID 2455
Product : Ensim Pro X for Linux
Version : 10.2.0
Topic : Notification

Title
000-delay causes cron-job runs for long time

Summary
000-delay causes cron-job runs for long time

Prevention


Details

Product: Ensim Pro X for Linux
Version: 10.2.0 (Fedora Core 6)
Date:  23-March-2007

Issue:

000-delay is cronjob introduced in FC6. The purpose is to delay cronjob processing by random amount to prevent high load on external servers that may be contacted by group of servers running cronjobs.

This job is fine for use at the top level system, but with Ensim Pro this job is propagated to every site and this causes cron.daily to run too long. In theory, the cron.daily could run longer than 24 hour cycle.

Procedure:

Step1:
Login as root user

Step2:
# rpm -q crontabs

If it shows crontabs-1.10-12.fc6 or higher version continue with step 3. if it does not go to step 5

Step3:
# cd /home/virtual/FILESYSTEMTEMPLATE/siteinfo/etc/cron.daily

Step4:
# edit 000-delay and write

#!/bin/bash
exit 0

Step5:
Edit /etc/virtualhosting/filelists/siteinfo.sh and search for line

S,rpm:crontabs

and replace it with:

S,rpm:crontabs !/etc/cron.daily/000-delay|/etc/cron.weekly/000-delay|/etc/cron.monthly/000-delay


Attachments


Related Knowledge

Related Links
 
Last ModifiedUsageSatisfiedLast Used
3/23/2007 6:51:04 AM57 10/10/2007 11:23:47 PM


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields