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

Diff of /trunk/src/runscript.c

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

Revision 2577 Revision 2578
423 423
424 if (rc_is_env ("RC_STRICT_DEPEND", "yes")) 424 if (rc_is_env ("RC_STRICT_DEPEND", "yes"))
425 depoptions |= RC_DEP_STRICT; 425 depoptions |= RC_DEP_STRICT;
426 426
427 if (rc_is_env ("IN_HOTPLUG", "1") || in_background) { 427 if (rc_is_env ("IN_HOTPLUG", "1") || in_background) {
428 if (! rc_service_state (service, rc_service_inactive)) 428 if (! rc_service_state (service, rc_service_inactive) &&
429 ! rc_service_state (service, rc_service_stopped))
429 exit (EXIT_FAILURE); 430 exit (EXIT_FAILURE);
430 background = true; 431 background = true;
431 } 432 }
432 433
433 if (rc_service_state (service, rc_service_started)) 434 if (rc_service_state (service, rc_service_started))
629 if (rc_runlevel_stopping () && 630 if (rc_runlevel_stopping () &&
630 rc_service_state (service, rc_service_failed)) 631 rc_service_state (service, rc_service_failed))
631 exit (EXIT_FAILURE); 632 exit (EXIT_FAILURE);
632 633
633 if (rc_is_env ("IN_HOTPLUG", "1") || in_background) 634 if (rc_is_env ("IN_HOTPLUG", "1") || in_background)
634 if (! rc_service_state (service, rc_service_started)) 635 if (! rc_service_state (service, rc_service_started) &&
636 ! rc_service_state (service, rc_service_inactive))
635 exit (EXIT_FAILURE); 637 exit (EXIT_FAILURE);
636 638
637 if (rc_service_state (service, rc_service_stopped)) 639 if (rc_service_state (service, rc_service_stopped))
638 ewarnx ("WARNING: %s is already stopped", applet); 640 ewarnx ("WARNING: %s is already stopped", applet);
639 else if (rc_service_state (service, rc_service_stopping)) 641 else if (rc_service_state (service, rc_service_stopping))

Legend:
Removed from v.2577  
changed lines
  Added in v.2578

  ViewVC Help
Powered by ViewVC 1.1.20