From 3036b447987cd9bead284dba2bd8ded5ea5dd340 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 21 Dec 2009 09:02:35 -0500 Subject: restore init.d pause option --- src/rc/runscript.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 4676bd0..e07cf58 100644 --- a/src/rc/runscript.c +++ b/src/rc/runscript.c @@ -1318,6 +1318,12 @@ runscript(int argc, char **argv) prefix = NULL; retval = svc_exec("status", NULL); } else { + if (strcmp(optarg, "pause") == 0) { + ewarn("WARNING: 'pause' is deprecated; please use '--nodeps stop'"); + deps = false; + optarg = "stop"; + } + if (strcmp(optarg, "conditionalrestart") == 0 || strcmp(optarg, "condrestart") == 0) { -- cgit v1.2.3