Created
March 22, 2018 10:16
-
-
Save mariodian/a6362f8a6deb15e929e9ad0b56287969 to your computer and use it in GitHub Desktop.
LND start/stop script (lnd.service needed)
This file contains 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
#!/bin/bash | |
if [ "$1" = "start" ]; then | |
echo "Starting Lightning Network" | |
echo "=====================" | |
sudo service lnd start & | |
lncli unlock | |
elif [ "$1" = "stop" ]; then | |
echo "Stopping Lightning Network" | |
echo "=====================" | |
sudo service lnd stop | |
elif [ "$1" = "restart" ]; then | |
$0 stop && $0 start | |
else | |
echo "No argument provided." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment