chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r764165 - in /hadoop/chukwa: branches/chukwa-0.1/tools/init.d/chukwa-collector trunk/tools/init.d/chukwa-collector
Date Sat, 11 Apr 2009 05:45:12 GMT
Author: eyang
Date: Sat Apr 11 05:45:12 2009
New Revision: 764165

URL: http://svn.apache.org/viewvc?rev=764165&view=rev
Log:
CHUKWA-80. Fix startup script.

Modified:
    hadoop/chukwa/branches/chukwa-0.1/tools/init.d/chukwa-collector
    hadoop/chukwa/trunk/tools/init.d/chukwa-collector

Modified: hadoop/chukwa/branches/chukwa-0.1/tools/init.d/chukwa-collector
URL: http://svn.apache.org/viewvc/hadoop/chukwa/branches/chukwa-0.1/tools/init.d/chukwa-collector?rev=764165&r1=764164&r2=764165&view=diff
==============================================================================
--- hadoop/chukwa/branches/chukwa-0.1/tools/init.d/chukwa-collector (original)
+++ hadoop/chukwa/branches/chukwa-0.1/tools/init.d/chukwa-collector Sat Apr 11 05:45:12 2009
@@ -33,13 +33,14 @@
 config () {
                 CHUKWA_HOME=/usr/local/chukwa
                 CHUKWA_CONF_DIR=/usr/local/chukwa/conf
+                CHUKWA_USER=chukwa
 }
 
 start () {
         echo -n $"Starting $prog: "
         config
         # start daemon
-	su - chukwa -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR} --watchdog
start jettyCollector.sh"
+	su - ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR}
--watchdog start jettyCollector.sh"
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && touch /var/lock/subsys/$prog
@@ -50,7 +51,7 @@
         # stop daemon
         config
         echo -n $"Stopping $prog: "
-	su - chukwa -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR} --watchdog
stop jettyCollector.sh"
+	su - ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR}
--watchdog stop jettyCollector.sh"
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog

Modified: hadoop/chukwa/trunk/tools/init.d/chukwa-collector
URL: http://svn.apache.org/viewvc/hadoop/chukwa/trunk/tools/init.d/chukwa-collector?rev=764165&r1=764164&r2=764165&view=diff
==============================================================================
--- hadoop/chukwa/trunk/tools/init.d/chukwa-collector (original)
+++ hadoop/chukwa/trunk/tools/init.d/chukwa-collector Sat Apr 11 05:45:12 2009
@@ -33,13 +33,14 @@
 config () {
                 CHUKWA_HOME=/usr/local/chukwa
                 CHUKWA_CONF_DIR=/usr/local/chukwa/conf
+                CHUKWA_USER=chukwa
 }
 
 start () {
         echo -n $"Starting $prog: "
         config
         # start daemon
-	su - chukwa -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR} --watchdog
start jettyCollector.sh"
+	su - ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR}
--watchdog start jettyCollector.sh"
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && touch /var/lock/subsys/$prog
@@ -50,7 +51,7 @@
         # stop daemon
         config
         echo -n $"Stopping $prog: "
-	su - chukwa -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR} --watchdog
stop jettyCollector.sh"
+	su - ${CHUKWA_USER} -c "${CHUKWA_HOME}/bin/chukwa-daemon.sh  --config ${CHUKWA_CONF_DIR}
--watchdog stop jettyCollector.sh"
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog



Mime
View raw message