Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
081242b9
Commit
081242b9
authored
1 year ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
rename tree unsupervise command to tree free
parent
57187800
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lib66/exec/ssexec_help.c
+3
-3
3 additions, 3 deletions
src/lib66/exec/ssexec_help.c
src/lib66/exec/ssexec_tree_signal.c
+1
-4
1 addition, 4 deletions
src/lib66/exec/ssexec_tree_signal.c
src/lib66/exec/ssexec_tree_wrapper.c
+1
-1
1 addition, 1 deletion
src/lib66/exec/ssexec_tree_wrapper.c
with
5 additions
and
8 deletions
src/lib66/exec/ssexec_help.c
+
3
−
3
View file @
081242b9
...
...
@@ -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|
unsupervis
e [<command options>] tree"
;
char
const
*
usage_tree_wrapper
=
"66 tree [ -h ] create|admin|remove|enable|disable|current|status|resolve|start|stop|
fre
e [<command options>] tree"
;
char
const
*
help_tree_wrapper
=
"
\n
main 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
"
"
unsupervis
e: bring down and unsupervise all services from tree
\n
"
"
fre
e: 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
unsupervis
e [ -h ] [ -f ] tree"
;
char
const
*
usage_tree_unsupervise
=
"66 tree
fre
e [ -h ] [ -f ] tree"
;
char
const
*
help_tree_unsupervise
=
"
\n
bring down and unsupervise all services of tree
\n
"
...
...
This diff is collapsed.
Click to expand it.
src/lib66/exec/ssexec_tree_signal.c
+
1
−
4
View file @
081242b9
...
...
@@ -145,7 +145,7 @@ static inline unsigned int parse_signal (char const *signal, ssexec_t *info)
static
char
const
*
const
signal_table
[]
=
{
"start"
,
"stop"
,
"
unsupervis
e"
,
"
fre
e"
,
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
)
;
...
...
This diff is collapsed.
Click to expand it.
src/lib66/exec/ssexec_tree_wrapper.c
+
1
−
1
View file @
081242b9
...
...
@@ -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
],
"
unsupervis
e"
))
{
}
else
if
(
!
strcmp
(
argv
[
1
],
"
fre
e"
))
{
info
->
prog
=
PROG
;
info
->
help
=
help_tree_unsupervise
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment