Browse code

make rejoin-stack.sh keep the same service tags

Currently rejoin-stack.sh can not keep the same screen service tags
as the first you deploy openstack due to that the stack-screenrc lack
proper command to configure screen's hardstatus. just delete the old
stack-screenrc so that function screen_rc can write proper initialize
command into stack-screenrc.

fix bug 1182597

Change-Id: I4cb4c6ded93a5c7b0bd39d65a754ddf86553463d

Jiajun Liu authored on 2013/07/17 15:41:50
Showing 2 changed files
... ...
@@ -17,7 +17,7 @@ if [[ -e $TOP_DIR/stack-screenrc ]]; then
17 17
         echo "Attaching to already started screen session.."
18 18
         exec screen -r stack
19 19
     fi
20
-    exec screen -c $TOP_DIR/stack-screenrc -S $SCREEN_NAME
20
+    exec screen -c $TOP_DIR/stack-screenrc
21 21
 fi
22 22
 
23 23
 echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?"
... ...
@@ -836,7 +836,7 @@ fi
836 836
 # Clear screen rc file
837 837
 SCREENRC=$TOP_DIR/$SCREEN_NAME-screenrc
838 838
 if [[ -e $SCREENRC ]]; then
839
-    echo -n > $SCREENRC
839
+    rm -f $SCREENRC
840 840
 fi
841 841
 
842 842
 # Initialize the directory for service status check