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

Diff of /trunk/src/runscript.c

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

Revision 2841 Revision 2842
885 if (softlevel && 885 if (softlevel &&
886 (strcmp (softlevel, RC_LEVEL_SHUTDOWN) == 0 || 886 (strcmp (softlevel, RC_LEVEL_SHUTDOWN) == 0 ||
887 strcmp (softlevel, RC_LEVEL_REBOOT) == 0 || 887 strcmp (softlevel, RC_LEVEL_REBOOT) == 0 ||
888 strcmp (softlevel, RC_LEVEL_SINGLE) == 0)) 888 strcmp (softlevel, RC_LEVEL_SINGLE) == 0))
889 continue; 889 continue;
890 rc_mark_service (svc, rc_service_failed); 890 rc_mark_service (service, rc_service_failed);
891 } 891 }
892 892
893 eerrorx ("ERROR: cannot stop %s as %s is still up", 893 eerrorx ("ERROR: cannot stop %s as %s is still up",
894 applet, svc); 894 applet, svc);
895 } 895 }
1214 rc_strlist_free (services); 1214 rc_strlist_free (services);
1215 services = rc_get_depends (deptree, types, svclist, 1215 services = rc_get_depends (deptree, types, svclist,
1216 softlevel, depoptions); 1216 softlevel, depoptions);
1217 STRLIST_FOREACH (services, svc, i) 1217 STRLIST_FOREACH (services, svc, i)
1218 printf ("%s%s", i == 1 ? "" : " ", svc); 1218 printf ("%s%s", i == 1 ? "" : " ", svc);
1219 if (services)
1219 printf ("\n"); 1220 printf ("\n");
1220 } else if (strcmp (optarg, "status") == 0) { 1221 } else if (strcmp (optarg, "status") == 0) {
1221 rc_service_state_t r = svc_status (service); 1222 rc_service_state_t r = svc_status (service);
1222 retval = (int) r; 1223 retval = (int) r;
1223 1224
1224 } else if (strcmp (optarg, "help") == 0) { 1225 } else if (strcmp (optarg, "help") == 0) {

Legend:
Removed from v.2841  
changed lines
  Added in v.2842

  ViewVC Help
Powered by ViewVC 1.1.20