mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 07:34:21 +01:00
lightningd: chdir as soon as we know lightning dir.
This is easy since we did the option parsing cleanup, but it has the effect that plugins are launched from the lightning-dir. Now we have dynamic plugins, this means startup and post-startup plugins experience the same environment. This is absolutely a desirable thing: they can just drop files in their cwd rather than having to move (including, I might note, core files!). We also highlight the change in various places (and a drive-up update of PLUGINS.md which says you have to use --plugin). The next patch adds a backwards compatibility wedge for old users of relative plugin paths. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
.\" Title: lightningd-config
|
||||
.\" Author: [see the "AUTHOR" section]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
||||
.\" Date: 07/29/2019
|
||||
.\" Date: 08/02/2019
|
||||
.\" Manual: \ \&
|
||||
.\" Source: \ \&
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "LIGHTNINGD\-CONFIG" "5" "07/29/2019" "\ \&" "\ \&"
|
||||
.TH "LIGHTNINGD\-CONFIG" "5" "08/02/2019" "\ \&" "\ \&"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
@@ -34,7 +34,7 @@ lightningd-config \- Lightning daemon configuration file
|
||||
\fB~/\&.lightning/config\fR
|
||||
.SH "DESCRIPTION"
|
||||
.sp
|
||||
When lightningd(8) starts up, it reads a configuration file\&. By default that is \fIconfig\fR in the \fB\&.lightning\fR subdirectory of the home directory (if it exists), but that can be changes by the \fI\-\-lightning\-dir\fR or \fI\-\-conf\fR options on the lightningd(8) command line\&.
|
||||
When lightningd(8) starts up, it reads a configuration file\&. By default that is \fIconfig\fR in the \fB\&.lightning\fR subdirectory of the home directory (if it exists), but that can be changed by the \fI\-\-lightning\-dir\fR or \fI\-\-conf\fR options on the lightningd(8) command line\&.
|
||||
.sp
|
||||
Configuration file options are processed first, then command line options: later options override earlier ones except \fIaddr\fR options which accumulate\&.
|
||||
.sp
|
||||
@@ -142,6 +142,8 @@ Number of blocks to rescan from the current head, or absolute blockheight if neg
|
||||
.RS 4
|
||||
Sets the working directory\&. All files (except
|
||||
\fI\-\-conf\fR
|
||||
and
|
||||
\fI\-\-lightning\-dir\fR
|
||||
on the command line) are relative to this\&.
|
||||
.RE
|
||||
.PP
|
||||
|
||||
Reference in New Issue
Block a user