/[baselayout]/trunk/src/runscript.c
Gentoo

Diff of /trunk/src/runscript.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2704 Revision 2706
973 char pid[16]; 973 char pid[16];
974 int retval; 974 int retval;
975 int opt; 975 int opt;
976 976
977 service = argv[1]; 977 service = argv[1];
978 applet = rc_xstrdup (basename (service));
979 atexit (cleanup);
980
978 /* Show help if insufficient args */ 981 /* Show help if insufficient args */
979 if (argc < 3) { 982 if (argc < 3) {
980 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL); 983 execl (RCSCRIPT_HELP, RCSCRIPT_HELP, service, (char *) NULL);
981 eerrorx ("%s: failed to exec `" RCSCRIPT_HELP "': %s", 984 eerrorx ("%s: failed to exec `" RCSCRIPT_HELP "': %s",
982 applet, strerror (errno)); 985 applet, strerror (errno));
983 } 986 }
984
985 applet = rc_xstrdup (basename (service));
986 atexit (cleanup);
987 987
988#ifdef __linux__ 988#ifdef __linux__
989 /* coldplug events can trigger init scripts, but we don't want to run them 989 /* coldplug events can trigger init scripts, but we don't want to run them
990 until after rc sysinit has completed so we punt them to the boot runlevel */ 990 until after rc sysinit has completed so we punt them to the boot runlevel */
991 if (rc_exists ("/dev/.rcsysinit")) { 991 if (rc_exists ("/dev/.rcsysinit")) {

Legend:
Removed from v.2704  
changed lines
  Added in v.2706

  ViewVC Help
Powered by ViewVC 1.1.20