|
|
@ -1562,7 +1562,7 @@ run_service_hook () { |
|
|
|
export MASTER_BASE_SERVICE_NAME="$MASTER_BASE_SERVICE_NAME" |
|
|
|
export MASTER_BASE_CHARM_NAME="$MASTER_BASE_CHARM_NAME" |
|
|
|
|
|
|
|
charm.run_hook "$charm" "$action" |
|
|
|
charm.run_hook "local" "$charm" "$action" |
|
|
|
|
|
|
|
EOF |
|
|
|
loaded[$subservice]=1 |
|
|
@ -1900,7 +1900,7 @@ _run_service_relation () { |
|
|
|
SERVICE_DATASTORE="$DATASTORE/$target_service" |
|
|
|
SERVICE_CONFIGSTORE="$CONFIGSTORE/$target_service" |
|
|
|
export SERVICE_NAME DOCKER_BASE_IMAGE SERVICE_DATASTORE SERVICE_CONFIGSTORE |
|
|
|
charm.run_relation_hook "$target_charm" "$relation_name" relation-joined |
|
|
|
charm.run_relation_hook local "$target_charm" "$relation_name" relation-joined |
|
|
|
echo "$?" > "$relation_dir/target_errlvl" |
|
|
|
) | logstdout "$DARKYELLOW$target_service$NORMAL/$DARKBLUE$relation_name$NORMAL (joined) ${GREEN}@${NORMAL}" |
|
|
|
} 3>&1 1>&2 2>&3 | logstderr "$DARKYELLOW$target_service$NORMAL/$DARKBLUE$relation_name$NORMAL (joined) ${RED}@${NORMAL}" 3>&1 1>&2 2>&3 |
|
|
@ -1932,7 +1932,7 @@ _run_service_relation () { |
|
|
|
SERVICE_DATASTORE="$DATASTORE/$service" |
|
|
|
SERVICE_CONFIGSTORE="$CONFIGSTORE/$service" |
|
|
|
export SERVICE_NAME DOCKER_BASE_IMAGE SERVICE_DATASTORE SERVICE_CONFIGSTORE |
|
|
|
charm.run_relation_hook "$charm" "$relation_name" relation-joined |
|
|
|
charm.run_relation_hook local "$charm" "$relation_name" relation-joined |
|
|
|
echo "$?" > "$relation_dir/errlvl" |
|
|
|
) | logstdout "$DARKYELLOW$service$NORMAL/$DARKBLUE$relation_name$NORMAL (joined) ${GREEN}@${NORMAL}" |
|
|
|
} 3>&1 1>&2 2>&3 | logstderr "$DARKYELLOW$service$NORMAL/$DARKBLUE$relation_name$NORMAL (joined) ${RED}@$NORMAL" 3>&1 1>&2 2>&3 |
|
|
|