Skip to content

Instantly share code, notes, and snippets.

@ryder247
Forked from mariodian/lnd.sh
Created August 13, 2022 07:42
Show Gist options
  • Select an option

  • Save ryder247/2dff6a6f8e22e05ddcdab606cb276ef9 to your computer and use it in GitHub Desktop.

Select an option

Save ryder247/2dff6a6f8e22e05ddcdab606cb276ef9 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