From fc597a87219dc0de006f02081bfb9cbc6ddfe14b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 15 May 2007 15:56:35 +0000 Subject: /etc/conf.d/rc.$runlevel now works, #177869. --- src/runscript.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runscript.c') diff --git a/src/runscript.c b/src/runscript.c index 82484f13..50a1931e 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -975,6 +975,9 @@ int main (int argc, char **argv) int opt; service = argv[1]; + applet = rc_xstrdup (basename (service)); + atexit (cleanup); + /* Show help if insufficient args */ if (argc < 3) { execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL); @@ -982,9 +985,6 @@ int main (int argc, char **argv) applet, strerror (errno)); } - applet = rc_xstrdup (basename (service)); - atexit (cleanup); - #ifdef __linux__ /* coldplug events can trigger init scripts, but we don't want to run them until after rc sysinit has completed so we punt them to the boot runlevel */ -- cgit v1.2.3