2019-08-31 14:30:56 +02:00
|
|
|
lightning-plugin -- Manage plugins with RPC
|
|
|
|
===========================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**plugin** command [*parameter*] [*second\_parameter*]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **plugin** RPC command allows to manage plugins without having to
|
|
|
|
restart lightningd. It takes 1 to 3 parameters: a command
|
|
|
|
(start/stop/startdir/rescan/list) which describes the action to take and
|
|
|
|
optionally one or two parameters which describes the plugin on which the
|
|
|
|
action has to be taken.
|
|
|
|
|
2020-12-14 05:58:35 +01:00
|
|
|
The *start* command takes a path as the first parameter and will load
|
|
|
|
the plugin available from this path. Any additional parameters are
|
|
|
|
passed to the plugin. It will wait for the plugin to complete the
|
|
|
|
handshake with `lightningd` for 20 seconds at the most.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2019-09-16 11:36:05 +02:00
|
|
|
The *stop* command takes a plugin name as parameter. It will kill and
|
2019-08-10 01:54:18 +02:00
|
|
|
unload the specified plugin.
|
|
|
|
|
2019-09-16 11:36:05 +02:00
|
|
|
The *startdir* command takes a directory path as first parameter and will
|
|
|
|
load all plugins this directory contains. It will wait for each plugin to
|
|
|
|
complete the handshake with `lightningd` for 20 seconds at the most.
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
The *rescan* command starts all not-already-loaded plugins from the
|
|
|
|
default plugins directory (by default *~/.lightning/plugins*).
|
|
|
|
|
|
|
|
The *list* command will return all the active plugins.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
- **command** (string): the subcommand this is responding to (one of "start", "stop", "rescan", "startdir", "list")
|
|
|
|
|
|
|
|
If **command** is "start", "startdir", "rescan" or "list":
|
|
|
|
- **plugins** (array of objects):
|
|
|
|
- **name** (string): full pathname of the plugin
|
|
|
|
- **active** (boolean): status; since plugins are configured asynchronously, a freshly started plugin may not appear immediately.
|
|
|
|
|
|
|
|
If **command** is "stop":
|
|
|
|
- **result** (string): A message saying it successfully stopped
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-06-16 03:10:17 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
2019-09-16 11:36:05 +02:00
|
|
|
On error, the reason why the action could not be taken upon the
|
|
|
|
plugin is returned.
|
|
|
|
|
2019-08-10 01:54:18 +02:00
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Antoine Poinsot <<darosior@protonmail.com>> is mainly responsible.
|
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2021-11-04 15:15:51 +01:00
|
|
|
[comment]: # ( SHA256STAMP:a07c71d232c39c0b959d07b9391d107413841753b67443d5f3698e1afd9cd2e4)
|