Current time: 09-29-2024, 07:22 PM Hello There, Guest! (LoginRegister)


Post Reply 
Duplicate cron entries
Author Message
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #1
Duplicate cron entries
Hi all...

I'm using ispCP since RC2 and have updated it constantly with every RC, so I'm now at RC7...

Coincidentally I've seen that there are duplicate entries for some cron jobs:

/etc/cron.d/ispcp
Code:
# delayed tasks START.

# Quota
@daily root /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-dsk-quota.log

# Traffic
0,30    *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30    *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45   *       *       *       *  root /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log

# customer logs
@daily root /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

# Backup
@daily root /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log
@daily root /var/www/ispcp/engine/backup/ispcp-backup-ispcp noreport &>/var/log/ispcp/ispcp-backup-ispcp-mngr.log

...

crontab -l
Code:
# Quota
0               23              * * *  /var/www/ispcp/engine/quota/ispcp-dsk-quota &>/var/log/ispcp/ispcp-qsk-quota.log

# Traffic
0,30    *               * * *  /var/www/ispcp/engine/traffic/ispcp-srv-traff &>/var/log/ispcp/ispcp-srv-traff.log
0,30    *               * * *  /var/www/ispcp/engine/traffic/ispcp-vrl-traff &>/var/log/ispcp/ispcp-vrl-traff.log
15,45   *               * * *  /var/www/ispcp/engine/traffic/ispcp-vrl-traff-correction &>/var/log/ispcp/ispcp-vrl-traff-correction.log
30              23              * * *  /var/www/ispcp/engine/tools/ispcp-httpd-logs-mngr &>/var/log/ispcp/ispcp-httpd-logs-mngr.log

# Backup
0               1               * * *  /var/www/ispcp/engine/backup/ispcp-backup-all yes &>/var/log/ispcp/ispcp-backup-all-mngr.log

# AWStats
15      */6     * * *   /var/www/ispcp/engine/awstats/awstats_updateall.pl now -awstatsprog=/usr/lib/cgi-bin/awstats.pl >/dev/null 2>&1

...

I guess that the entries in root's crontab were done by one of the first ispCP versions and not deleted by later updates. Am I right?

I've also a file /etc/cron.d/ispcp.phptemp which does the same as this line in /etc/cron.d/ispcp:
Code:
0,30 *     * * *     root   /var/www/ispcp/engine/tools/ispcpphptemp.sh >/dev/null 2>&1
so I assume that ispcp.phptemp is also an old one?

Can someone confirm this?

Greetings
FeG
01-01-2009 08:12 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Duplicate cron entries - FeG - 01-01-2009 08:12 PM
RE: Duplicate cron entries - sci2tech - 01-01-2009, 08:50 PM
RE: Duplicate cron entries - BioALIEN - 01-03-2009, 09:21 AM
RE: Duplicate cron entries - FeG - 01-03-2009, 10:55 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)