Table of Contents
Configure bots
What jobs do the bots perform ?
The bots are small script which use the Vhffs API to perform the services creation/modification/destruction tasks.
Users enter their requests through the panel. This information is saved in the Vhffs database. Once the bots are running, they read the database and execute the requests.
Bots are located in /usr/lib/vhffs/bots/
To run a bot, just type:
/usr/lib/vhffs/bots/nom_du_robot.pl
Automatically run the bots
Create a cron file for vhffs
touch /etc/cron.d/vhffs
then edit it, here is an example
# cron for vhffs [...] */10 * * * * root ionice -c3 nice -n 19 /usr/lib/vhffs/bots/web_create.pl */10 * * * * root ionice -c3 nice -n 19 /usr/lib/vhffs/bots/web_delete.pl 0 0 * * * root ionice -c3 nice -n 19 /usr/lib/vhffs/bots/web_stats.pl
(if ionice is not available on your system, remove the ionice part, but you should really use it, especially for the stats bot which is doing a lot of I/O)