Merge "Launch screen with bash as shell"
diff --git a/files/swift/object-server.conf b/files/swift/object-server.conf
index 06fbffe..2f888a2 100644
--- a/files/swift/object-server.conf
+++ b/files/swift/object-server.conf
@@ -18,3 +18,5 @@
[object-updater]
[object-auditor]
+
+[object-expirer]
diff --git a/stack.sh b/stack.sh
index f54ef34..c4d08d9 100755
--- a/stack.sh
+++ b/stack.sh
@@ -1077,15 +1077,12 @@
fi
if sudo vgs $VOLUME_GROUP; then
+ # Remove nova iscsi targets
+ sudo tgtadm --op show --mode target | grep $VOLUME_NAME_PREFIX | grep Target | cut -f3 -d ' ' | sudo xargs -n1 tgt-admin --delete || true
# Clean out existing volumes
for lv in `sudo lvs --noheadings -o lv_name $VOLUME_GROUP`; do
# VOLUME_NAME_PREFIX prefixes the LVs we want
if [[ "${lv#$VOLUME_NAME_PREFIX}" != "$lv" ]]; then
- tid=`egrep "^tid.+$lv" /proc/net/iet/volume | cut -f1 -d' ' | tr ':' '='`
- if [[ -n "$tid" ]]; then
- lun=`egrep "lun.+$lv" /proc/net/iet/volume | cut -f1 -d' ' | tr ':' '=' | tr -d '\t'`
- sudo ietadm --op delete --$tid --$lun
- fi
sudo lvremove -f $VOLUME_GROUP/$lv
fi
done
@@ -1284,17 +1281,12 @@
function screen_it {
NL=`echo -ne '\015'`
if [[ "$ENABLED_SERVICES" =~ "$1" ]]; then
- if [[ "$USE_TMUX" =~ "yes" ]]; then
- tmux new-window -t stack -a -n "$1" "bash"
- tmux send-keys "$2" C-M
- else
- screen -S stack -X screen -t $1
- # sleep to allow bash to be ready to be send the command - we are
- # creating a new window in screen and then sends characters, so if
- # bash isn't running by the time we send the command, nothing happens
- sleep 1.5
- screen -S stack -p $1 -X stuff "$2$NL"
- fi
+ screen -S stack -X screen -t $1
+ # sleep to allow bash to be ready to be send the command - we are
+ # creating a new window in screen and then sends characters, so if
+ # bash isn't running by the time we send the command, nothing happens
+ sleep 1.5
+ screen -S stack -p $1 -X stuff "$2$NL"
fi
}