Ticket #397 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Running ispcp-setup in an already installed system (e.g. upgrade) duplicates the cronjobs

Reported by: raphael Assigned to:
Priority: minor Milestone: ispCP ω 1.0.0 - RC3
Component: Backend (Engine) Version: ispCP ω 1.0.0 - RC2
Severity: Keywords: setup,cronjobs,debian packaging
Cc:

Description

I would say it is easier to move the cronjobs to /etc/cron.d (#302), otherwise we'll have to either strip existing cronjobs or don't touch them (could cause problems when an upgrade includes new cronjob entries).

This can be considered as part of #394

Attachments

Change History

(follow-up: ↓ 2 ) 06/24/07 22:14:14 changed by rats

If we proceed so we get a problem by failures on installation... please fix!

(in reply to: ↑ 1 ) 06/24/07 22:15:07 changed by rats

Replying to rats:

If we proceed so we get a problem by failures on installation... please fix!

# delayed tasks START.

# 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

# Rootkit Hunter 0 0,12 * * * rkhunter --createlogfile --cronjob

# [{DMN_NAME}] backup task START. # [{DMN_NAME}] backup task END.

# delayed tasks END. # delayed tasks START.

# Quota 0 23 * * * {QUOTA_ROOT_DIR}/ispcp-dsk-quota &>{LOG_DIR}/ispcp-qsk-quota.log

# Traffic 0,30 * * * * {TRAFF_ROOT_DIR}/ispcp-srv-traff &>{LOG_DIR}/ispcp-srv-traff.log 0,30 * * * * {TRAFF_ROOT_DIR}/ispcp-vrl-traff &>{LOG_DIR}/ispcp-vrl-traff.log 15,45 * * * * {TRAFF_ROOT_DIR}/ispcp-vrl-traff-correction &>{LOG_DIR}/ispcp-vrl-traff-correction.log 30 23 * * * {TOOLS_ROOT_DIR}/ispcp-httpd-logs-mngr &>{LOG_DIR}/ispcp-httpd-logs-mngr.log

# Backup 0 1 * * * {BACKUP_ROOT_DIR}/ispcp-backup-all yes &>{LOG_DIR}/ispcp-backup-all-mngr.log

# AWStats #{AWSTATS}

# Rootkit Hunter 0 0,12 * * * rkhunter --createlogfile --cronjob

# [{DMN_NAME}] backup task START. # [{DMN_NAME}] backup task END.

# delayed tasks END.

06/25/07 01:57:51 changed by raphael

  • priority changed from major to minor.

I've already checked the code many times but I haven't found why it occurs. Meanwhile I updated the .conf files so they are all the same (including the ending line feed) in r677.

07/19/07 00:40:06 changed by raphael

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r714


Add/Change #397 (Running ispcp-setup in an already installed system (e.g. upgrade) duplicates the cronjobs)




Action