mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-19 14:45:23 +01:00
28 lines
548 B
Markdown
28 lines
548 B
Markdown
|
# Init
|
||
|
|
||
|
Sample configuration files for:
|
||
|
|
||
|
```
|
||
|
systemd: lnd.service
|
||
|
```
|
||
|
|
||
|
## systemd
|
||
|
|
||
|
Add the example `lnd.service` file to `/etc/systemd/system/` and modify it according to your system and user configuration. Use the following commands to interact with the service:
|
||
|
|
||
|
```bash
|
||
|
# Enable lnd to automatically start on system boot
|
||
|
systemctl enable lnd
|
||
|
|
||
|
# Start lnd
|
||
|
systemctl start lnd
|
||
|
|
||
|
# Restart lnd
|
||
|
systemctl restart lnd
|
||
|
|
||
|
# Stop lnd
|
||
|
systemctl stop lnd
|
||
|
```
|
||
|
|
||
|
Systemd will attempt to restart lnd automatically if it crashes or otherwise stops unexpectedly.
|