diff options
author | ivan <ivan> | 2011-06-02 22:46:17 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-06-02 22:46:17 +0000 |
commit | cec24ae5b81b9cb6a0ea3453f0028a63dda83dd1 (patch) | |
tree | 229b23f8adcff13243661aed506f523c7c0cebc8 /init.d/freeside-init | |
parent | e4f150238e6d07f2036e41d1c5066f3f1c51c960 (diff) |
add torrus collector start/stop
Diffstat (limited to 'init.d/freeside-init')
-rw-r--r-- | init.d/freeside-init | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/freeside-init b/init.d/freeside-init index c82ea9862..c4477d062 100644 --- a/init.d/freeside-init +++ b/init.d/freeside-init @@ -52,6 +52,12 @@ case "$1" in freeside-selfservice-xmlrpcd $SELFSERVICE_USER echo "done." + if [ -e /usr/local/bin/torrus ]; then + echo -n "Starting torrus collector: " + /usr/local/bin/torrus collector --tree=main + echo "done." + fi + echo -n "Starting freeside-torrus-srvderive: " freeside-torrus-srvderive $QUEUED_USER echo "done." @@ -124,6 +130,12 @@ case "$1" in echo "done." fi + if [ -e /var/run/torrus/collector.main_?.pid ]; then + echo -n "Stopping torrus collector: " + kill `cat /var/run/torrus/collector.main_?.pid` + echo "done." + fi + ;; restart) |