Skip to content

Instantly share code, notes, and snippets.

@mariodian
Created March 22, 2018 10:16
Show Gist options
  • Save mariodian/a6362f8a6deb15e929e9ad0b56287969 to your computer and use it in GitHub Desktop.
Save mariodian/a6362f8a6deb15e929e9ad0b56287969 to your computer and use it in GitHub Desktop.
LND start/stop script (lnd.service needed)
#!/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