Running LightningTip with supervisord - michael1011/lightningtip GitHub Wiki
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