You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
2.2 KiB
32 lines
2.2 KiB
3 years ago
|
[Unit]
|
||
|
Description=C-Lightning daemon
|
||
|
Requires=bitcoin.service
|
||
|
After=bitcoin.service
|
||
|
Wants=network.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
NotifyAccess=all
|
||
|
ExecStart=LIGHTNINGD --conf HOME/.lightning/config --pid-file=HOME/.lightning/lightningd.pid
|
||
|
User=USER
|
||
|
Group=USER
|
||
|
Type=forking
|
||
|
PIDFile=HOME/.lightning/lightningd.pid
|
||
|
Restart=on-failure
|
||
|
|
||
|
KillSignal=SIGINT
|
||
|
TimeoutSec=60
|
||
|
WatchdogSec=60
|
||
|
LimitNOFILE=32768
|
||
|
|
||
|
# Hardening
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|
||
|
ProtectSystem=true
|
||
|
MemoryDenyWriteExecute=true
|
||
|
NoNewPrivileges=true
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|