restore init.d pause option

This commit is contained in:
Mike Frysinger 2009-12-21 09:02:35 -05:00
parent acc0edb040
commit 3036b44798

View File

@ -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)
{ {