diff options
Diffstat (limited to 'src/startstop.c')
-rw-r--r-- | src/startstop.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/startstop.c b/src/startstop.c index f5346c4..98f4e12 100644 --- a/src/startstop.c +++ b/src/startstop.c @@ -58,25 +58,29 @@ eclat_start_instance(eclat_command_env_t *env, int argc, char **argv) argc, argv, &i); debug(ECLAT_DEBCAT_MAIN, 1, ("starting instances")); return start_stop_instance(env, argc - i, argv + i); } + +static int force; + +#include "stop-cl.h" + int eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv) { int i; - parse_options(env->cmd, - "Stop named instances", - argc, argv, &i); - + parse_stop_options(env, argc, argv, &i); debug(ECLAT_DEBCAT_MAIN, 1, ("stopping instances")); + if (force) + eclat_request_add_param(env->request, "Force", "1"); return start_stop_instance(env, argc - i, argv + i); } - + int eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv) { int i; parse_options(env->cmd, |