mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 23:04:35 +01:00
lightningd: more graceful shutdown.
Be more graceful in shutting down: this should fix the issue where bookkeeper gets upset that its commands are rejected during shutdown, and generally make things more graceful. 1. Stop any new RPC connections. 2. Stop any per-peer daemons (channeld, etc). 3. Shut down plugins. 4. Stop all existing RPC connections. 5. Stop global daemons. 6. Free up peer, chanen HTLC datastructures. 7. Close database. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Changed: Plugins: RPC operations are now still available during shutdown.
This commit is contained in:
committed by
Christian Decker
parent
e853cdc3ff
commit
375215a141
@@ -2542,7 +2542,7 @@ def test_plugin_shutdown(node_factory):
|
||||
l1.rpc.plugin_start(p, dont_shutdown=True)
|
||||
l1.rpc.stop()
|
||||
l1.daemon.wait_for_logs(['test_libplugin: shutdown called',
|
||||
'misc_notifications.py: via lightningd shutdown, datastore failed',
|
||||
'misc_notifications.py: .* Connection refused',
|
||||
'test_libplugin: failed to self-terminate in time, killing.'])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user