restore init.d pause option
This commit is contained in:
parent
acc0edb040
commit
3036b44798
@ -1318,6 +1318,12 @@ runscript(int argc, char **argv)
|
|||||||
prefix = NULL;
|
prefix = NULL;
|
||||||
retval = svc_exec("status", NULL);
|
retval = svc_exec("status", NULL);
|
||||||
} else {
|
} else {
|
||||||
|
if (strcmp(optarg, "pause") == 0) {
|
||||||
|
ewarn("WARNING: 'pause' is deprecated; please use '--nodeps stop'");
|
||||||
|
deps = false;
|
||||||
|
optarg = "stop";
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(optarg, "conditionalrestart") == 0 ||
|
if (strcmp(optarg, "conditionalrestart") == 0 ||
|
||||||
strcmp(optarg, "condrestart") == 0)
|
strcmp(optarg, "condrestart") == 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user