Merge "specify session name on perform rejoin stack"
This commit is contained in:
commit
fdb9f8f6d2
@ -5,13 +5,15 @@
|
||||
|
||||
TOP_DIR=`dirname $0`
|
||||
|
||||
source $TOP_DIR/stackrc
|
||||
|
||||
# if screenrc exists, run screen
|
||||
if [[ -e $TOP_DIR/stack-screenrc ]]; then
|
||||
if screen -ls | egrep -q "[0-9].stack"; then
|
||||
echo "Attaching to already started screen session.."
|
||||
exec screen -r stack
|
||||
fi
|
||||
exec screen -c $TOP_DIR/stack-screenrc
|
||||
exec screen -c $TOP_DIR/stack-screenrc -S $SCREEN_NAME
|
||||
fi
|
||||
|
||||
echo "Couldn't find $TOP_DIR/stack-screenrc file; have you run stack.sh yet?"
|
||||
|
1
stack.sh
1
stack.sh
@ -142,7 +142,6 @@ fi
|
||||
# and the specified rpc backend is available on your platform.
|
||||
check_rpc_backend
|
||||
|
||||
SCREEN_NAME=${SCREEN_NAME:-stack}
|
||||
# Check to see if we are already running DevStack
|
||||
# Note that this may fail if USE_SCREEN=False
|
||||
if type -p screen >/dev/null && screen -ls | egrep -q "[0-9].$SCREEN_NAME"; then
|
||||
|
Loading…
Reference in New Issue
Block a user