Correcly call the right runlevel for plugins when shutting down.
This commit is contained in:
parent
bb41d2cc80
commit
f53197818b
@ -1188,10 +1188,6 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save our runlevel now */
|
|
||||||
if (going_down)
|
|
||||||
rc_runlevel_set(newlevel);
|
|
||||||
|
|
||||||
parallel = rc_conf_yesno("rc_parallel");
|
parallel = rc_conf_yesno("rc_parallel");
|
||||||
|
|
||||||
/* Now stop the services that shouldn't be running */
|
/* Now stop the services that shouldn't be running */
|
||||||
@ -1202,7 +1198,8 @@ int main(int argc, char **argv)
|
|||||||
wait_for_services();
|
wait_for_services();
|
||||||
|
|
||||||
/* Notify the plugins we have finished */
|
/* Notify the plugins we have finished */
|
||||||
rc_plugin_run(RC_HOOK_RUNLEVEL_STOP_OUT, runlevel);
|
rc_plugin_run(RC_HOOK_RUNLEVEL_STOP_OUT,
|
||||||
|
going_down ? newlevel : runlevel);
|
||||||
hook_out = 0;
|
hook_out = 0;
|
||||||
|
|
||||||
rmdir(RC_STOPPING);
|
rmdir(RC_STOPPING);
|
||||||
|
Loading…
Reference in New Issue
Block a user