mirror of
https://github.com/troglobit/finit.git
synced 2026-11-02 13:20:32 +00:00
Merge pull request #338 from JackNewman12/shutdown-hook-fix
Fix shutdown hooks not running Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 file changed
+2
-2
@@ -330,7 +330,7 @@ void do_shutdown(shutop_t op)
|
|||||||
;
|
;
|
||||||
|
|
||||||
/* All services and (non-critical) processes have stopped. */
|
/* All services and (non-critical) processes have stopped. */
|
||||||
plugin_run_hooks(HOOK_SVC_DN);
|
plugin_script_run(HOOK_SVC_DN);
|
||||||
|
|
||||||
if (in_cont) {
|
if (in_cont) {
|
||||||
if (osheading)
|
if (osheading)
|
||||||
@@ -380,7 +380,7 @@ void do_shutdown(shutop_t op)
|
|||||||
|
|
||||||
/* Last chance to run scripts (all .so plugins have exited already) */
|
/* Last chance to run scripts (all .so plugins have exited already) */
|
||||||
print(0, "Calling hook/svc/down scripts ...");
|
print(0, "Calling hook/svc/down scripts ...");
|
||||||
plugin_run_hooks(HOOK_SYS_DN);
|
plugin_script_run(HOOK_SYS_DN);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Optional reboot-delay, needed on systems running ubifs, jffs,
|
* Optional reboot-delay, needed on systems running ubifs, jffs,
|
||||||
|
|||||||
Reference in new issue
Block a user