Skip to content

Instantly share code, notes, and snippets.

@Stadicus
Last active February 11, 2018 22:15
Show Gist options
  • Save Stadicus/318bc18418fed1e9f8be50776517fd4d to your computer and use it in GitHub Desktop.
Save Stadicus/318bc18418fed1e9f8be50776517fd4d to your computer and use it in GitHub Desktop.
systemd for c-lightning daemon
[Unit]
Description=C-Lightning daemon
Requires=bitcoind.service
Requires=getpublicip.service
After=bitcoind.service
[Service]
# get var PUBIP from file
EnvironmentFile=/home/bitcoin/publicip/publicip
ExecStart=/home/bitcoin/lightning/lightningd/lightningd --network bitcoin --log-level debug --rgb 68f442 --alias Stadicus --ipaddr ${PUBLICIP}
PIDFile=/home/bitcoin/.lightning/lightningd.pid
User=bitcoin
Group=bitcoin
Type=simple
KillMode=process
TimeoutSec=180
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment