[packages/cacti] shorten commandline

glen glen at pld-linux.org
Tue Mar 12 16:47:50 CET 2013


commit 192a48491684d1bc2ceb9da608dea01c25b82fba
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Mar 12 17:47:39 2013 +0200

    shorten commandline

 cacti.crontab | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/cacti.crontab b/cacti.crontab
index 04d9bf2..5e0ffc0 100644
--- a/cacti.crontab
+++ b/cacti.crontab
@@ -4,8 +4,7 @@ MAILTO=root
 */5 * * * * cacti umask 022; exec /usr/sbin/cacti-poller > /dev/null
 
 # reindex interface data (expensive); reapply data source/graph names based on templates and reindexed data
-# 20 1 * * 7 cacti umask 022; /usr/share/cacti/cli/poller_reindex_hosts.php --id=All > /dev/null ; /usr/share/cacti/cli/poller_data_sources_reapply_names.php --id=All > /dev/null ; /usr/share/cacti/cli/poller_graphs_reapply_names.php -id=All > /dev/null
-
-# 
+# remove "exec>/dev/null" if you want to receive output from the jobs
+#20 1 * * 7 cacti umask 022; exec > /dev/null; cd /usr/share/cacti/cli; ./poller_reindex_hosts.php --id=All; ./poller_data_sources_reapply_names.php --id=All; ./poller_graphs_reapply_names.php -id=All
 
 # vim:ft=crontab
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cacti.git/commitdiff/192a48491684d1bc2ceb9da608dea01c25b82fba



More information about the pld-cvs-commit mailing list