mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
Remove flux condition emulation, confusing to user
The condition flux state does not work like that, so keeping this sub-command is only confusing to the user. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
13159ea99a
commit
6490735ee9
1 file changed
-3
@@ -199,7 +199,6 @@ static int do_cond_magic(char op, char *cond)
|
|||||||
|
|
||||||
static int do_cond_set (char *cond) { return do_cond_magic('+', cond); }
|
static int do_cond_set (char *cond) { return do_cond_magic('+', cond); }
|
||||||
static int do_cond_clear(char *cond) { return do_cond_magic('-', cond); }
|
static int do_cond_clear(char *cond) { return do_cond_magic('-', cond); }
|
||||||
static int do_cond_flux (char *cond) { return do_cond_magic('~', cond); }
|
|
||||||
|
|
||||||
static int do_cond_show(char *UNUSED(arg))
|
static int do_cond_show(char *UNUSED(arg))
|
||||||
{
|
{
|
||||||
@@ -260,7 +259,6 @@ static int do_cond(char *cmd)
|
|||||||
command_t command[] = {
|
command_t command[] = {
|
||||||
{ "set", do_cond_set },
|
{ "set", do_cond_set },
|
||||||
{ "clear", do_cond_clear },
|
{ "clear", do_cond_clear },
|
||||||
{ "flux", do_cond_flux },
|
|
||||||
{ "show", do_cond_show },
|
{ "show", do_cond_show },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
@@ -411,7 +409,6 @@ static int usage(int rc)
|
|||||||
" status | show Show status of services\n"
|
" status | show Show status of services\n"
|
||||||
" cond set <COND> Set (assert) condition => +COND\n"
|
" cond set <COND> Set (assert) condition => +COND\n"
|
||||||
" cond clear <COND> Clear (deassert) condition => -COND\n"
|
" cond clear <COND> Clear (deassert) condition => -COND\n"
|
||||||
" cond flux <COND> Emulate flux condition => ~COND\n"
|
|
||||||
" cond show Show condition status\n"
|
" cond show Show condition status\n"
|
||||||
" start <JOB|NAME>[:ID] Start service by job# or name, with optional ID\n"
|
" start <JOB|NAME>[:ID] Start service by job# or name, with optional ID\n"
|
||||||
" stop <JOB|NAME>[:ID] Stop/Pause a running service by job# or name\n"
|
" stop <JOB|NAME>[:ID] Stop/Pause a running service by job# or name\n"
|
||||||
|
|||||||
Reference in new issue
Block a user