Fix bugs with start.

Change-Id: I4e3ad7443f07de390c368e483d1e5e4f754857dd
This commit is contained in:
Endre Karlson 2013-06-08 22:05:19 +02:00
parent 5c3a6efa3c
commit 5d61c711a5

View File

@ -205,7 +205,7 @@ function prereq_setup() {
function start_svc() { function start_svc() {
svc="$(echo "$svc" | sed 's/bs-//')" svc="$(echo "$1" | sed 's/bs-//')"
echo "Starting service: $svc" echo "Starting service: $svc"
screen_it bs-$svc "billingstack-$svc --config-file $CONFIG" screen_it bs-$svc "billingstack-$svc --config-file $CONFIG"
} }
@ -214,7 +214,7 @@ function start_svc() {
function start() { function start() {
local svc=$1 local svc=$1
[ "$svc" == 'all' ] && { [ "$svc" == 'all' ] && {
for s in $SERVICES; do for s in $(echo "$SERVICES" | tr ',' ' '); do
start_svc $s start_svc $s
done done
return return
@ -231,7 +231,7 @@ case $1 in
svc=$2 svc=$2
[ -z "$svc" ] && svc=all [ -z "$svc" ] && svc=all
echo "Starting service(s): $svc" echo "Starting service(s): $svc"
start $2 start $svc
;; ;;
stop) stop)
screen_destroy screen_destroy