mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 01:43:36 +01:00
Remove --daemon from lightningd.service
When the `--daemon` flag is used, `lightningd` requires that `--log-file` is used as well. By consequence, the `lightningd.service` didn't work out-of-the-box for me. This changes also sends the logs to `journald`. The new approach is consistent with the `bitcoind.service` file in the bitcoin-core repository. I prefer this approach because it comes with automatic log-rotation.
This commit is contained in:
parent
dae6a0bcf2
commit
db9dbc5f31
@ -15,7 +15,7 @@ Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/lightningd --daemon --conf /etc/lightningd/lightningd.conf --pid-file=/run/lightningd/lightningd.pid
|
||||
ExecStart=/usr/bin/lightningd --conf /etc/lightningd/lightningd.conf --pid-file=/run/lightningd/lightningd.pid
|
||||
|
||||
# Creates /run/lightningd owned by bitcoin
|
||||
RuntimeDirectory=lightningd
|
||||
@ -24,7 +24,7 @@ ConfigurationDirectory=lightningd
|
||||
|
||||
User=bitcoin
|
||||
Group=bitcoin
|
||||
Type=forking
|
||||
Type=simple
|
||||
PIDFile=/run/lightningd/lightningd.pid
|
||||
Restart=on-failure
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user