Last active
February 11, 2018 22:15
-
-
Save Stadicus/318bc18418fed1e9f8be50776517fd4d to your computer and use it in GitHub Desktop.
systemd for c-lightning daemon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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