diff options
Diffstat (limited to 'src/startstop.c')
-rw-r--r-- | src/startstop.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/startstop.c b/src/startstop.c index 2460682..78c581c 100644 --- a/src/startstop.c +++ b/src/startstop.c @@ -46,3 +46,2 @@ start_stop_instance(eclat_command_env_t *env, int argc, char **argv) } - return 0; @@ -92 +91,14 @@ eclat_reboot_instance(eclat_command_env_t *env, int argc, char **argv) } + +int +eclat_terminate_instances(eclat_command_env_t *env, int argc, char **argv) +{ + int i; + + parse_options(env->cmd, + "Terminate named instances", + argc, argv, &i); + + debug(ECLAT_DEBCAT_MAIN, 1, ("terminate instances")); + return start_stop_instance(env, argc - i, argv + i); +} |