Parallels H-Sphere Documentation System Administrator Guide

 

Customizing Cron Jobs

 
 

Related Docs:   H-Sphere Cron Scripts Customizing Config File Templates

Last modified: 06 Oct 2006

 

WARNING: This documentation covers Parallels H-Sphere versions up to 3.1. For the latest up-to-date Parallels H-Sphere documentation, please proceed to the official Parallels site.

WARNING:
It is not recommended that you customize cron jobs by yourself. Any alterations made to them are at your own risk!

Sometimes you may need to apply custom filters and wrappers to H-Sphere crontab, for example, to prevent sending some system notifications. However, when you add or delete a system package, crontab is being rewritten, and all modificatation are being lost.

For example, you have modified the cron-rotate.pl call in crontab like this:

0 2 * * * nice -15 /hsphere/shared/scripts/cron/cron_rotate.pl 2>&1 | egrep -vf /hsphere/local/config/cron/hs_cron_rotate.filter

To prevent it from removing, save the copy of modified crontab as /hsphere/local/config/cron/crontab.custom:

# mkdir -p -m 0700 /hsphere/local/config/cron && crontab -l >> /hsphere/local/config/cron/crontab.custom

Then, after each update H-Sphere will restore your custom crontab settings.


Related Docs:   H-Sphere Cron Scripts Customizing Config File Templates



© Copyright 2017. Parallels Holdings. All rights reserved.