startup script for Sokol simplified

This commit is contained in:
Alexander Kolotov 2018-05-15 14:20:45 +03:00
parent 8f9baa38bc
commit a59403b056
3 changed files with 16 additions and 18 deletions

View File

@ -1,12 +1,12 @@
[parity]
chain = "/home/koal/parity/Sokol_home.json"
base_path = "/home/koal/parity/Sokol_home"
keys_path = "/home/koal/parity/keys"
chain = "Sokol_home.json"
base_path = "/home/koal/poa/sokol"
keys_path = "./keys"
[network]
port = 30333
nat = "none"
reserved_peers="/home/koal/parity/Sokol_bootnodes.txt"
reserved_peers="Sokol_bootnodes.txt"
[rpc]
port = 38545
@ -26,4 +26,5 @@ port = 38546
[account]
unlock = ["0x842eb2142c5aa1260954f07aae39ddee1640c3a7"]
password = ["/home/koal/parity/keys/passwd/home_842eb2142c5aa1260954f07aae39ddee1640c3a7.pwd"]
password = ["./keys/passwd/home_842eb2142c5aa1260954f07aae39ddee1640c3a7.pwd"]
#password = ["/home/koal/git-repos/parity-bridge-research/erc20/tmp_passwd"]

View File

@ -1,8 +0,0 @@
#!/bin/bash
PARITY_EXEC=/opt/parity/parity
PARITY_CONFIG=/home/koal/parity/Sokol_home.toml
#DEBUG_RPC='-l rpc=trace'
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
exec ${PARITY_EXEC} --config ${PARITY_CONFIG} ${DEBUG_RPC} ${EXTRA_CONFIG}

View File

@ -1,9 +1,14 @@
#!/bin/bash
PARITY_BASE="/home/koal/parity"
RUNNER="parity_Sokol_home.sh"
TASK="Sokol_home"
PARITY_BASE="/home/koal/poa"
TASK="sokol_home"
PARITY_CONFIG="Sokol_home.toml"
TASK_WORK_DIR="${PARITY_BASE}/sokol"
cd ${PARITY_BASE}/${TASK}
#DEBUG_RPC='-l rpc=trace'
#EXTRA_CONFIG='--jsonrpc-hosts="all" --jsonrpc-cors null'
exec screen -d -m -U -t "${TASK}" -S "${TASK}.screen" -h 5000 -L -s ${PARITY_BASE}/${RUNNER}
configdir=`dirname $0`
cd ${configdir}
source start_common.sh