diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-12-21 09:02:35 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-04-09 02:19:40 -0400 |
commit | 3036b447987cd9bead284dba2bd8ded5ea5dd340 (patch) | |
tree | d9d9d075863bef0f13a3217c025b0dbe75bdb1ff /src | |
parent | acc0edb040056e25635ba22cd5d2f4dd89988b3c (diff) |
restore init.d pause option
Diffstat (limited to 'src')
-rw-r--r-- | src/rc/runscript.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c index 4676bd08..e07cf588 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) { |