changeset 7:b01ee1b28680

launching script handles "salut" component
author souliane <souliane@mailoo.org>
date Thu, 24 Jul 2014 12:25:27 +0200
parents 19448ad3a7d9
children be65751edc43
files scripts/launcher/launch.sh
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/launcher/launch.sh	Wed Jul 16 12:29:22 2014 +0200
+++ b/scripts/launcher/launch.sh	Thu Jul 24 12:25:27 2014 +0200
@@ -12,6 +12,7 @@
 LIBERVIA=$WORKSPACE/libervia
 PROSODY=$WORKSPACE/prosody-hg
 SATPUBSUB=$WORKSPACE/sat_pubsub
+SALUT=$WORKSPACE/salut
 URWID_SATEXT=$WORKSPACE/urwid_satext
 
 # PIDs of the processes
@@ -20,8 +21,9 @@
 LIB_PID=$LOCAL_DIR/libervia.pid
 SER_PID=$PROSODY/prosody.pid
 SPS_PID=$SATPUBSUB/twistd.pid
+SALUT_PID=$SALUT/twistd.pid
 
-# Connection information for sat_pubsub
+# Connection information for Prosody components
 SPS_JID=sat-pubsub.tazar.int
 SPS_PWD=password
 
@@ -79,8 +81,9 @@
     echo "############# Stopping Prosody ############"
     cd $PROSODY && if [[ -f $SER_PID ]]; then ./prosodyctl stop; fi
     kill_process $SER_PID
-    echo "########### Stopping sat_pubsub ###########"
+    echo "####### Stopping Prosody components #######"
     kill_process $SPS_PID
+    kill_process $SALUT_PID
 }
 start_ser() {
     echo "############# Starting Prosody ############"
@@ -93,6 +96,8 @@
     else
         twistd sat_pubsub --jid=$SPS_JID --secret=$SPS_PWD
     fi
+    echo "############## Starting salut #############"
+    cd $SALUT && twistd -y salut.tac
 }
 start_sat() {
     echo "############## Installing sat #############"