Skip to content

Commit

Permalink
doc: document shutdown plugin.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Sep 3, 2021
1 parent fe4cee1 commit 1e3d90b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/PLUGINS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 1e3d90b

Please sign in to comment.