From 565e914a9939ecd57b5c7ad85c37e6b4f80b91a9 Mon Sep 17 00:00:00 2001 From: openoms Date: Sun, 10 Oct 2021 09:41:40 +0100 Subject: [PATCH] FAQ.cl: extend custom plugin notes --- FAQ.cl.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/FAQ.cl.md b/FAQ.cl.md index 695933077..dd57b4586 100644 --- a/FAQ.cl.md +++ b/FAQ.cl.md @@ -237,19 +237,22 @@ or with the alias: `cllog` * clboss ### Add a custom plugin -* The easiest way is to place the plugin in the -`/home/bitcoin/cl-plugins-enabled` -directory and start with +* Place the plugin in the `/home/bitcoin/cl-plugins-enabled` directory +* Make sure it is owned by the `bitcoin` user and is executable: + ``` + sudo chown bitcoin:bitcoin /home/bitcoin/cl-plugins-enabled/PLUGIN_NAME + sudo chmod +x /home/bitcoin/cl-plugins-enabled/PLUGIN_NAME + ``` +* start with ``` lightnign-cli plugin start /home/bitcoin/cl-plugins-enabled/PLUGIN_NAME ``` - or restart C-ligthning with: +* or to load it automatically on restart: ``` sudo systemctl restart lightningd ``` - to have it loaded automatically. - From that directory it will load auomatically after restarts. - To just load it run it once store in: + From the directory `/home/bitcoin/cl-plugins-enabled` it will load auomatically after restarts. +* To just load it run it once store in (and start from): `/home/bitcoin/cl-plugins-available/` ### CLBOSS