Skip to content

Instantly share code, notes, and snippets.

@scottie
Last active March 19, 2018 03:57
Show Gist options
  • Save scottie/a9acc75c4a5c21dab6d6ae1df975c94b to your computer and use it in GitHub Desktop.
Save scottie/a9acc75c4a5c21dab6d6ae1df975c94b to your computer and use it in GitHub Desktop.
Quick Instacash Daemon Tests
#!/bin/bash
#console
echo [Quick Build Test]
kill -9 $(ps aux | grep '[i]nstacashd' | awk '{print $2}')
echo [killed daemon process]
cd instacash
make
echo make done
cd ~/
cp ~/.instacash/instacash.conf ~/backup.conf
echo [backup on config]
rm -fr ~/.instacash
echo [removed .daemon directory]
mkdir ~/.instacash
echo [restoring config]
cp ~/backup.conf ~/.instacash/instacash.conf
./instacash/src/instacashd
echo [testing]
./instacash/src/instacash-cli getinfo
echo [READY...]
tail ~/.instacash/debug.log
sleep 5
tail ~/.instacash/debug.log
sleep 5
tail ~/.instacash/debug.log
echo [Killing...]
kill -9 $(ps aux | grep '[i]nstacashd' | awk '{print $2}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment