diff --git a/ssm b/ssm index b1257d4..9f0ada2 100755 --- a/ssm +++ b/ssm @@ -827,7 +827,7 @@ done flag_reset_exit && { reset-exit; die $?; } # Get the service config -source -- "$service_config" "${@:3}" || die 7 "Failed to read the service config: $service_config" +source -- "$service_config" "${@:2}" || die 7 "Failed to read the service config: $service_config" # Rexec ourselves in the requested netns flag_no_netns || { @@ -946,6 +946,7 @@ fi action || { flag_reread_service && die 0 # Not a mistake if the service was to be re-read usage; die 2; } +shift # Do we have such a function? if_service_action "$action" || die 17 "Function $action is not defined for $service_name."