[freeside-commits] freeside/init.d freeside-init,1.23,1.24
Ivan,,,
ivan at wavetail.420.am
Thu Jun 2 15:46:19 PDT 2011
Update of /home/cvs/cvsroot/freeside/init.d
In directory wavetail.420.am:/tmp/cvs-serv12131
Modified Files:
freeside-init
Log Message:
add torrus collector start/stop
Index: freeside-init
===================================================================
RCS file: /home/cvs/cvsroot/freeside/init.d/freeside-init,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -w -d -r1.23 -r1.24
--- freeside-init 27 Feb 2011 02:23:00 -0000 1.23
+++ freeside-init 2 Jun 2011 22:46:17 -0000 1.24
@@ -52,6 +52,12 @@
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 @@
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)
More information about the freeside-commits
mailing list