#!/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
