summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rc/runscript.c6
1 files changed, 6 insertions, 0 deletions
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)
{