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
This commit is contained in:
parent
7ad51b4a47
commit
8e58c0736f
@ -17,7 +17,7 @@ if [[ -e $TOP_DIR/stack-screenrc ]]; then
|
|||||||
echo "Attaching to already started screen session.."
|
echo "Attaching to already started screen session.."
|
||||||
exec screen -r stack
|
exec screen -r stack
|
||||||
fi
|
fi
|
||||||
exec screen -c $TOP_DIR/stack-screenrc -S $SCREEN_NAME
|
exec screen -c $TOP_DIR/stack-screenrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?"
|
echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?"
|
||||||
|
2
stack.sh
2
stack.sh
@ -836,7 +836,7 @@ fi
|
|||||||
# Clear screen rc file
|
# Clear screen rc file
|
||||||
SCREENRC=$TOP_DIR/$SCREEN_NAME-screenrc
|
SCREENRC=$TOP_DIR/$SCREEN_NAME-screenrc
|
||||||
if [[ -e $SCREENRC ]]; then
|
if [[ -e $SCREENRC ]]; then
|
||||||
echo -n > $SCREENRC
|
rm -f $SCREENRC
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize the directory for service status check
|
# Initialize the directory for service status check
|
||||||
|
Loading…
Reference in New Issue
Block a user