Skip to content

Commit 306cfad

Browse files
committed
python plugins: add note for systemd and uv
1 parent e29dd44 commit 306cfad

File tree

13 files changed

+287
-0
lines changed

13 files changed

+287
-0
lines changed

backup/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,28 @@ plugin and `backup-cli` like a binary. After `uv` is installed and you followed
1818
lightning-cli plugin start /path/to/backup.py
1919
```
2020

21+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
22+
23+
You can either:
24+
25+
**Option 1: Install `uv` system-wide** (recommended):
26+
```bash
27+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
28+
```
29+
30+
**Option 2: Copy your existing user installation**:
31+
```bash
32+
sudo cp "$(command -v uv)" /usr/local/bin/uv
33+
```
34+
35+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
36+
37+
To verify `uv` is accessible to systemd:
38+
```bash
39+
sudo systemd-run --user --wait command -v uv
40+
```
41+
This should output `/usr/local/bin/uv`.
42+
2143
For general plugin installation instructions see the repos main
2244
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
2345

cl-zmq/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@ plugin like a binary. After `uv` is installed you can simply run
1414
lightning-cli plugin start /path/to/cl-zmq.py
1515
```
1616

17+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
18+
19+
You can either:
20+
21+
**Option 1: Install `uv` system-wide** (recommended):
22+
```bash
23+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
24+
```
25+
26+
**Option 2: Copy your existing user installation**:
27+
```bash
28+
sudo cp "$(command -v uv)" /usr/local/bin/uv
29+
```
30+
31+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
32+
33+
To verify `uv` is accessible to systemd:
34+
```bash
35+
sudo systemd-run --user --wait command -v uv
36+
```
37+
This should output `/usr/local/bin/uv`.
38+
1739
For general plugin installation instructions see the repos main
1840
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1941

clearnet/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@ plugin like a binary. After `uv` is installed you can simply run
1212
lightning-cli plugin start /path/to/clearnet.py
1313
```
1414

15+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
16+
17+
You can either:
18+
19+
**Option 1: Install `uv` system-wide** (recommended):
20+
```bash
21+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
22+
```
23+
24+
**Option 2: Copy your existing user installation**:
25+
```bash
26+
sudo cp "$(command -v uv)" /usr/local/bin/uv
27+
```
28+
29+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
30+
31+
To verify `uv` is accessible to systemd:
32+
```bash
33+
sudo systemd-run --user --wait command -v uv
34+
```
35+
This should output `/usr/local/bin/uv`.
36+
1537
For general plugin installation instructions see the repos main
1638
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1739

currencyrate/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@ plugin like a binary. After `uv` is installed you can simply run
1212
lightning-cli plugin start /path/to/currencyrate.py
1313
```
1414

15+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
16+
17+
You can either:
18+
19+
**Option 1: Install `uv` system-wide** (recommended):
20+
```bash
21+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
22+
```
23+
24+
**Option 2: Copy your existing user installation**:
25+
```bash
26+
sudo cp "$(command -v uv)" /usr/local/bin/uv
27+
```
28+
29+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
30+
31+
To verify `uv` is accessible to systemd:
32+
```bash
33+
sudo systemd-run --user --wait command -v uv
34+
```
35+
This should output `/usr/local/bin/uv`.
36+
1537
For general plugin installation instructions see the repos main
1638
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1739

donations/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ plugin like a binary. After `uv` is installed you can simply run
77
lightning-cli plugin start /path/to/donations.py
88
```
99

10+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
11+
12+
You can either:
13+
14+
**Option 1: Install `uv` system-wide** (recommended):
15+
```bash
16+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
17+
```
18+
19+
**Option 2: Copy your existing user installation**:
20+
```bash
21+
sudo cp "$(command -v uv)" /usr/local/bin/uv
22+
```
23+
24+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
25+
26+
To verify `uv` is accessible to systemd:
27+
```bash
28+
sudo systemd-run --user --wait command -v uv
29+
```
30+
This should output `/usr/local/bin/uv`.
31+
1032
For general plugin installation instructions see the repos main
1133
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1234

feeadjuster/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,28 @@ plugin like a binary. After `uv` is installed you can simply run
1414
lightning-cli plugin start /path/to/feeadjuster.py
1515
```
1616

17+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
18+
19+
You can either:
20+
21+
**Option 1: Install `uv` system-wide** (recommended):
22+
```bash
23+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
24+
```
25+
26+
**Option 2: Copy your existing user installation**:
27+
```bash
28+
sudo cp "$(command -v uv)" /usr/local/bin/uv
29+
```
30+
31+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
32+
33+
To verify `uv` is accessible to systemd:
34+
```bash
35+
sudo systemd-run --user --wait command -v uv
36+
```
37+
This should output `/usr/local/bin/uv`.
38+
1739
For general plugin installation instructions see the repos main
1840
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1941

historian/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,28 @@ plugin like a binary. After `uv` is installed you can simply run
2121
lightning-cli plugin start /path/to/historian.py
2222
```
2323

24+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
25+
26+
You can either:
27+
28+
**Option 1: Install `uv` system-wide** (recommended):
29+
```bash
30+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
31+
```
32+
33+
**Option 2: Copy your existing user installation**:
34+
```bash
35+
sudo cp "$(command -v uv)" /usr/local/bin/uv
36+
```
37+
38+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
39+
40+
To verify `uv` is accessible to systemd:
41+
```bash
42+
sudo systemd-run --user --wait command -v uv
43+
```
44+
This should output `/usr/local/bin/uv`.
45+
2446
For general plugin installation instructions see the repos main
2547
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
2648

monitor/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,28 @@ plugin like a binary. After `uv` is installed you can simply run
1111
lightning-cli plugin start /path/to/monitor.py
1212
```
1313

14+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
15+
16+
You can either:
17+
18+
**Option 1: Install `uv` system-wide** (recommended):
19+
```bash
20+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
21+
```
22+
23+
**Option 2: Copy your existing user installation**:
24+
```bash
25+
sudo cp "$(command -v uv)" /usr/local/bin/uv
26+
```
27+
28+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
29+
30+
To verify `uv` is accessible to systemd:
31+
```bash
32+
sudo systemd-run --user --wait command -v uv
33+
```
34+
This should output `/usr/local/bin/uv`.
35+
1436
For general plugin installation instructions see the repos main
1537
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1638

persistent-channels/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ plugin like a binary. After `uv` is installed you can simply run
77
lightning-cli plugin start /path/to/persistent-channels.py
88
```
99

10+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
11+
12+
You can either:
13+
14+
**Option 1: Install `uv` system-wide** (recommended):
15+
```bash
16+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
17+
```
18+
19+
**Option 2: Copy your existing user installation**:
20+
```bash
21+
sudo cp "$(command -v uv)" /usr/local/bin/uv
22+
```
23+
24+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
25+
26+
To verify `uv` is accessible to systemd:
27+
```bash
28+
sudo systemd-run --user --wait command -v uv
29+
```
30+
This should output `/usr/local/bin/uv`.
31+
1032
For general plugin installation instructions see the repos main
1133
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)
1234

prometheus/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,27 @@ plugin like a binary. After `uv` is installed you can simply run
2525
lightning-cli plugin start /path/to/prometheus.py
2626
```
2727

28+
If you use `systemd` to start CLN, you must have `uv` in the `PATH` that `systemd` uses, which is likely different than the `PATH` from your shell. Most `uv` installation methods install `uv` into your user's home directory (`~/.local/bin` or `~/.cargo/bin`), which `systemd` cannot access.
29+
30+
You can either:
31+
32+
**Option 1: Install `uv` system-wide** (recommended):
33+
```bash
34+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
35+
```
36+
37+
**Option 2: Copy your existing user installation**:
38+
```bash
39+
sudo cp "$(command -v uv)" /usr/local/bin/uv
40+
```
41+
42+
**Option 3: Configure your systemd service** to use a custom `PATH` (see systemd documentation).
43+
44+
To verify `uv` is accessible to systemd:
45+
```bash
46+
sudo systemd-run --user --wait command -v uv
47+
```
48+
This should output `/usr/local/bin/uv`.
49+
2850
For general plugin installation instructions see the repos main
2951
[README.md](https://github.com/lightningd/plugins/blob/master/README.md#Installation)

0 commit comments

Comments
 (0)