aboutsummaryrefslogtreecommitdiff
path: root/src/rc/openrc-run.c
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-22 12:46:29 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-01-22 12:46:29 -0600
commit47dd5e37cbf372df3ee0fad2c87226dce5b51587 (patch)
treecc5e485f7e30d49d96da7592928466feaef014ee /src/rc/openrc-run.c
parente277ae57efaba3be3eb619fd00084b116c370231 (diff)
add back deprecation warnings lost during refactoring
Diffstat (limited to 'src/rc/openrc-run.c')
-rw-r--r--src/rc/openrc-run.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c
index 2a4b90d2..5e3ba677 100644
--- a/src/rc/openrc-run.c
+++ b/src/rc/openrc-run.c
@@ -1121,6 +1121,10 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
+ applet = basename_c(argv[0]);
+ if (strcmp(applet, "runscript") == 0)
+ ewarnv("runscript is deprecated, please use openrc-run instead.");
+
if (stat(argv[1], &stbuf) != 0) {
fprintf(stderr, "openrc-run `%s': %s\n",
argv[1], strerror(errno));