From f0c800b81d1d771c980b992fb5e493eda307a789 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 6 Sep 2015 19:59:01 -0400 Subject: [PATCH] Do not fail on service_start when a service is already started The desired state already exists, so this isn't strictly an error state. --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 9faa338..b78be3e 100755 --- a/functions +++ b/functions @@ -193,7 +193,7 @@ service_start() { local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE" local SERVICE_NAME=$(get_service_name "$SERVICE") local ID=$(docker ps -f status=running | grep "$SERVICE_NAME" | awk '{print $1}') || true - [[ -n $ID ]] && dokku_log_fail "Service is already started" + [[ -n $ID ]] && dokku_log_warn "Service is already started" && return 0 dokku_log_info1_quiet "Starting container" local PREVIOUS_ID=$(docker ps -f status=exited | grep "$SERVICE_NAME" | awk '{print $1}') || true