-
-
Save ryder247/2dff6a6f8e22e05ddcdab606cb276ef9 to your computer and use it in GitHub Desktop.
LND start/stop script (lnd.service needed)
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
| #!/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