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
This commit is contained in:
William Hubbs 2016-08-25 11:04:48 -05:00
parent 4018dfc8de
commit 69ac78d76a

View File

@ -1169,9 +1169,6 @@ int main(int argc, char **argv)
if (argc < 3) if (argc < 3)
usage(EXIT_FAILURE); 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 */ /* Change dir to / to ensure all init scripts don't use stuff in pwd */
if (chdir("/") == -1) if (chdir("/") == -1)
eerror("chdir: %s", strerror(errno)); eerror("chdir: %s", strerror(errno));
@ -1291,6 +1288,9 @@ int main(int argc, char **argv)
applet_list = rc_stringlist_new(); applet_list = rc_stringlist_new();
rc_stringlist_add(applet_list, applet); rc_stringlist_add(applet_list, applet);
if (runscript)
ewarn("%s uses runscript, please convert to openrc-run.", service);
/* Now run each option */ /* Now run each option */
retval = EXIT_SUCCESS; retval = EXIT_SUCCESS;
while (optind < argc) { while (optind < argc) {