5
edits
Changes
→Setup
== Setup ==
Add this to cron to run every vz_direct_traffic_log every 5 minutesmin and vz_direct_traffic_render every 30 min:
# echo -e "*/5 * * * * root /path/to/script/vz_direct_traffic_log \n*/30 * * * * root /path/to/script/vz_direct_traffic_render " >> \
/etc/crontab && /etc/init.d/crontab restart
Better use the cron system of OpenVZ
# echo -e "*/5 * * * * root /path/to/script/vz_direct_traffic_log \n*/30 * * * * root /path/to/script/vz_direct_traffic_render " >> \
/etc/vz/cron/vz-traffic.sh && /etc/init.d/vz update-cron