aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-08-25 11:04:48 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-08-25 11:04:48 -0500
commit69ac78d76a31d843c004717eb6aa6a77bb4c9a8e (patch)
treeb3d98447864e13e95738e1af7e1a7b77bc58681b /src/rc
parent4018dfc8de4818101c336ff8bcf0f4762b318c6a (diff)
openrc-run: make runscript warning respect quiet option
X-Gentoo-Bug: 591414 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=591414
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/openrc-run.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index ff884c47..e3b4fbb0 100644
--- a/src/rc/openrc-run.c
+++ b/src/rc/openrc-run.c
@@ -1169,9 +1169,6 @@ int main(int argc, char **argv)
if (argc < 3)
usage(EXIT_FAILURE);
- if (runscript)
- ewarn("%s uses runscript, please convert to openrc-run.", service);
-
/* Change dir to / to ensure all init scripts don't use stuff in pwd */
if (chdir("/") == -1)
eerror("chdir: %s", strerror(errno));
@@ -1291,6 +1288,9 @@ int main(int argc, char **argv)
applet_list = rc_stringlist_new();
rc_stringlist_add(applet_list, applet);
+ if (runscript)
+ ewarn("%s uses runscript, please convert to openrc-run.", service);
+
/* Now run each option */
retval = EXIT_SUCCESS;
while (optind < argc) {