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

Remove deprecated option at disable, parse and stop command.

parent 07b56b0b
No related branches found
No related tags found
No related merge requests found
......@@ -64,16 +64,6 @@ int ssexec_disable(int argc, char const *const *argv, ssexec_t *info)
stop = 1 ;
break ;
case 'F' :
log_1_warn("options -F is dead -- skipping it") ;
break ;
case 'R' :
log_1_warn("options -F is deprecated -- use instead 66 remove <service>") ;
break ;
case 'P' :
propagate = 0 ;
......
......@@ -66,11 +66,6 @@ int ssexec_parse(int argc, char const *const *argv, ssexec_t *info)
conf = 1 ;
break ;
case 'F' : log_1_warn("deprecated option -- ignoring") ; break ;
case 'c' : log_1_warn("deprecated option -- ignoring") ; break ;
case 'm' : log_1_warn("deprecated option -- ignoring") ; break ;
case 'C' : log_1_warn("deprecated option -- ignoring") ; break ;
default :
log_usage(info->usage, "\n", info->help) ;
}
......@@ -112,9 +107,9 @@ int ssexec_parse(int argc, char const *const *argv, ssexec_t *info)
if (r >= 0) {
size_t len = strlen(sv) ;
_alloc_stk_(stk, len + 1) ;
stack_add(&stk, sv, len - (--r)) ; // do not check output here, we are dying anyway
stack_add(&stk, sv, --r) ; // do not check output here, we are dying anyway
stack_close(&stk) ;
log_die(LOG_EXIT_USER, "parsing an individual service that is part of a module is not allowed -- please parse the entire module instead using \'66 parse ", stk.s, "\'") ;
log_die(LOG_EXIT_USER, "service: ", sv," is part of a module and cannot be parsed alone -- please parse the entire module instead using \'66 parse ", stk.s, "\'") ;
}
if (!service_frontend_path(&sa, sv, info->owner, directory_forced, exclude, exlen))
......
......@@ -74,16 +74,6 @@ int ssexec_stop(int argc, char const *const *argv, ssexec_t *info)
FLAGS_SET(flag, STATE_FLAGS_TOUNSUPERVISE|STATE_FLAGS_WANTUP) ;
break ;
case 'X' :
log_1_warn("deprecated option -- use 66 signal -xd instead") ;
return 0 ;
case 'K' :
log_1_warn("deprecated option -- use 66 signal -kd instead") ;
return 0 ;
default :
log_usage(info->usage, "\n", info->help) ;
}
......
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