Skip to content
Snippets Groups Projects
Commit 081242b9 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

rename tree unsupervise command to tree free

parent 57187800
No related branches found
No related tags found
No related merge requests found
......@@ -294,7 +294,7 @@ char const *help_signal =
" -r : restart service by sending it a signal(default SIGTERM)\n"
;
char const *usage_tree_wrapper = "66 tree [ -h ] create|admin|remove|enable|disable|current|status|resolve|start|stop|unsupervise [<command options>] tree" ;
char const *usage_tree_wrapper = "66 tree [ -h ] create|admin|remove|enable|disable|current|status|resolve|start|stop|free [<command options>] tree" ;
char const *help_tree_wrapper =
"\nmain sub tools to manages trees\n"
......@@ -313,7 +313,7 @@ char const *help_tree_wrapper =
" resolve: display resolve file of tree\n"
" start: bring up all services from tree\n"
" stop: bring down all services from tree\n"
" unsupervise: bring down and unsupervise all services from tree\n"
" free: bring down and unsupervise all services from tree\n"
"\n"
"Use '66 tree <command> -h' to see command options\n"
;
......@@ -454,7 +454,7 @@ char const *help_tree_stop =
"If no tree name are provided, it bring down all enabled trees from the system\n"
;
char const *usage_tree_unsupervise = "66 tree unsupervise [ -h ] [ -f ] tree" ;
char const *usage_tree_unsupervise = "66 tree free [ -h ] [ -f ] tree" ;
char const *help_tree_unsupervise =
"\nbring down and unsupervise all services of tree\n"
......
......@@ -145,7 +145,7 @@ static inline unsigned int parse_signal (char const *signal, ssexec_t *info)
static char const *const signal_table[] = {
"start",
"stop",
"unsupervise",
"free",
0
} ;
unsigned int i = lookup(signal_table, signal) ;
......@@ -542,9 +542,6 @@ static int doit(char const *treename, ssexec_t *sinfo, unsigned int what, tain *
int r = ssexec_callback(&sa, &info, what) ;
if (r)
goto err ;
if (what == 2)
log_info("Unsupervised successfully tree: ", info.treename.s) ;
}
stralloc_free(&sa) ;
......
......@@ -155,7 +155,7 @@ int ssexec_tree_wrapper(int argc, char const *const *argv, ssexec_t *info)
func = &ssexec_tree_signal ;
ctl++ ;
} else if (!strcmp(argv[1], "unsupervise")) {
} else if (!strcmp(argv[1], "free")) {
info->prog = PROG ;
info->help = help_tree_unsupervise ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment