Cron Setup
The module uses two cron tasks. Change the path to match your WHMCS directory.
Main task (required)
Run every 2 minutes:
*/2 * * * * php /home/<user>/public_html/modules/addons/rabisu/cron.php >/dev/null 2>&1
On each run it:
- Completes finished setups.
- Syncs service statuses with Rabisu (suspend, unsuspend, terminate).
- Writes missing IP, hostname and password to the WHMCS service (up to 20 services per run).
- Sends the "server ready" email to the customer once the details arrive.
- Applies automatic reprice if enabled.
- Checks for low balance.
Cron does not pay pending orders from your Rabisu balance. That only happens when the customer pays the invoice.
Catalog sync (recommended)
Refreshes prices and details of mapped products. Every 15 minutes is enough:
*/15 * * * * php /home/<user>/public_html/modules/addons/rabisu/cron.php --task=product-sync >/dev/null 2>&1
It runs in batches of 50 products. After a timeout it continues where it left off on the next run.
Notes
- Each task has its own lock (
flock). Runs do not overlap. - Cron runs only from the command line. It cannot be called from the web.
- The Addons > Rabisu Bayi > Health tab shows ready-made commands with your WHMCS path, and the last run time and status of each job. WHMCS's own cron (
crons/cron.php) must also be running.