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.
30 lines
583 B
30 lines
583 B
3 years ago
|
[Unit]
|
||
3 years ago
|
Description=C-Lightning daemon
|
||
|
Requires=bitcoin.service
|
||
|
After=bitcoin.service
|
||
|
Wants=network.target
|
||
|
After=network.target
|
||
3 years ago
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
3 years ago
|
NotifyAccess=all
|
||
3 years ago
|
ExecStart=LIGHTNINGD --daemon --log-file HOME/.lightning/log --conf HOME/.lightning/config --pid-file=HOME/.lightning/lightningd.pid
|
||
3 years ago
|
User=USER
|
||
|
Group=USER
|
||
|
Type=forking
|
||
|
PIDFile=HOME/.lightning/lightningd.pid
|
||
|
Restart=on-failure
|
||
|
|
||
3 years ago
|
KillSignal=SIGINT
|
||
3 years ago
|
LimitNOFILE=32768
|
||
3 years ago
|
|
||
3 years ago
|
# Hardening
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|
||
|
ProtectSystem=true
|
||
|
MemoryDenyWriteExecute=true
|
||
|
NoNewPrivileges=true
|
||
3 years ago
|
|
||
|
[Install]
|
||
3 years ago
|
WantedBy=multi-user.target
|