summaryrefslogtreecommitdiffabout
path: root/src/startstop.c
Unidiff
Diffstat (limited to 'src/startstop.c') (more/less context) (show whitespace changes)
-rw-r--r--src/startstop.c12
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
@@ -61,16 +61,20 @@ eclat_start_instance(eclat_command_env_t *env, int argc, char **argv)
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
65static int force;
66
67#include "stop-cl.h"
68
64int 69int
65eclat_stop_instance(eclat_command_env_t *env, int argc, char **argv) 70eclat_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

Return to:

Send suggestions and report system problems to the System administrator.