Ticket #126: openrc-0.4.0-warn-sysinit-stop.patch
File openrc-0.4.0-warn-sysinit-stop.patch, 740 bytes (added by Matthias Schwarzott <zzam@gentoo.org>, 21 months ago) |
---|
-
openrc-0.4.0/src/rc/runscript.c
old new 965 965 hook_out = RC_HOOK_SERVICE_STOP_OUT; 966 966 rc_plugin_run(RC_HOOK_SERVICE_STOP_IN, applet); 967 967 968 if (!rc_runlevel_stopping() && 969 rc_service_in_runlevel(service, RC_LEVEL_BOOT)) 970 ewarn ("WARNING: you are stopping a boot service"); 968 if (!rc_runlevel_stopping()) { 969 if (rc_service_in_runlevel(service, RC_LEVEL_SYSINIT)) 970 ewarn ("WARNING: you are stopping a sysinit service"); 971 else if (rc_service_in_runlevel(service, RC_LEVEL_BOOT)) 972 ewarn ("WARNING: you are stopping a boot service"); 973 } 971 974 972 975 if (deps && !(state & RC_SERVICE_WASINACTIVE)) { 973 976 errno = 0;