Last active
March 19, 2018 03:57
-
-
Save scottie/a9acc75c4a5c21dab6d6ae1df975c94b to your computer and use it in GitHub Desktop.
Quick Instacash Daemon Tests
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 | |
#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