Files
stacks-puppet-node/blockstack_registrar/bin/run_loop
2017-01-17 11:16:19 -05:00

19 lines
397 B
Bash
Executable File

#!/bin/sh
# restart registrar ever x time interval
# currently set to 30 mins
SLEEP_INTERVAL=1800
while [ true ]
do
pkill -9 python
rm -f ~/.registrar/debug.log
#bin/registrar reprocess > ~/.registrar/debug.log 2>&1 &
bin/registrar reprocess
bin/registrar transfer
bin/registrar update
bin/registrar register
bin/registrar preorder
sleep $SLEEP_INTERVAL
done