SuperNodeStorage/start_supernode.sh
sairajzero 1f4d18e540 One-Click Startup
Adding one-click bash script to start the supernode
All logs are stored in logs directory
Configurations are listed in .config file
2020-01-01 23:21:11 +05:30

20 lines
392 B
Bash
Executable File

#!/bin/sh
current_date=$(date)
echo "$current_date : Starting Supernode" >> logs/app.log
#Read configurations
IFS="="
while read -r var value
do
export "$var"="${value}"
done < .config
#Start the app
echo $current_date >> logs/server.log
app/supernodeWSS.bin $PORT $SERVER_PWD >> logs/server.log &
echo $current_date >> logs/browser.log
$BROWSER app/index.html >> logs/browser.log &
wait