diff options
Diffstat (limited to 'src/startstop.c')
-rw-r--r-- | src/startstop.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/startstop.c b/src/startstop.c index f5346c4..98f4e12 100644 --- a/src/startstop.c +++ b/src/startstop.c | |||
@@ -58,22 +58,26 @@ eclat_start_instance(eclat_command_env_t *env, int argc, char **argv) | |||
58 | argc, argv, &i); | 58 | argc, argv, &i); |
59 | 59 | ||
60 | debug(ECLAT_DEBCAT_MAIN, 1, ("starting instances")); | 60 | debug(ECLAT_DEBCAT_MAIN, 1, ("starting instances")); |
61 | return start_stop_instance(env, argc - i, argv + i); | 61 | return start_stop_instance(env, argc - i, argv + i); |
62 | } | 62 | } |
63 | 63 | ||
64 | |||
65 | static int force; | ||
66 | |||
67 | #include "stop-cl.h" | ||
68 | |||
64 | int | 69 | int |
65 | eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv) | 70 | eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv) |
66 | { | 71 | { |
67 | int i; | 72 | int i; |
68 | 73 | ||
69 | parse_options(env->cmd, | 74 | parse_stop_options(env, argc, argv, &i); |
70 | "Stop named instances", | ||
71 | argc, argv, &i); | ||
72 | |||
73 | debug(ECLAT_DEBCAT_MAIN, 1, ("stopping instances")); | 75 | debug(ECLAT_DEBCAT_MAIN, 1, ("stopping instances")); |
76 | if (force) | ||
77 | eclat_request_add_param(env->request, "Force", "1"); | ||
74 | return start_stop_instance(env, argc - i, argv + i); | 78 | return start_stop_instance(env, argc - i, argv + i); |
75 | } | 79 | } |
76 | 80 | ||
77 | int | 81 | int |
78 | eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv) | 82 | eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv) |
79 | { | 83 | { |