Skip to content

Running LightningTip with supervisord

bretton edited this page Apr 1, 2018 · 1 revision

Enable the LightningTip via supervisor

Add a .conf file for lightningtip to supervisor as follows:

cd /etc/supervisor/conf.d/
sudo nano lightningtip.conf

Add the following content, replacing REPLACE-LNTIP-USER with the username lightningtip is running under:

[program:lightningtip]
user=REPLACE-LNTIP-USER
command=/home/REPLACE-LNTIP-USER/go/bin/lightningtip --config=/home/REPLACE-LNTIP-USER/.lightningtip/lightningTip.conf
startretries=999999999999999999999999999
autostart=true
autorestart=true

Then reload supervisor:

sudo supervisorctl reload

To stop run:

sudo supervisorctl stop lightningtip

To start again run:

sudo supervisorctl start lightningtip