mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
doc: document shutdown plugin.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
516c38a750
commit
36baef22e2
1 changed files with 10 additions and 0 deletions
|
@ -791,6 +791,16 @@ here, with the peer's signatures attached.
|
|||
}
|
||||
```
|
||||
|
||||
### `shutdown`
|
||||
|
||||
Called when lightningd is shutting down, or this plugin has been
|
||||
shutdown by the plugin stop command. The plugin has 30 seconds to
|
||||
exit itself, otherwise it's killed.
|
||||
|
||||
Because lightningd can crash or be killed, a plugin cannot rely on
|
||||
this function always called.
|
||||
|
||||
|
||||
## Hooks
|
||||
|
||||
Hooks allow a plugin to define custom behavior for `lightningd`
|
||||
|
|
Loading…
Add table
Reference in a new issue