10 Jul, 2018

Restart stratum proxy yiimp

After you have separate ports on each coin, you may need sometimes to restart only just particular stratum server, let’s say GOLDCOIN.

cd /var/stratum

Fill restart.sh with :

#!/bin/bash
echo "Stopping $1"
ps aux | grep SCREEN | grep $1 |awk '{print $2}' | xargs kill -9
sleep 1
echo "Starting $2"
screen -AmdS $1 sh run.sh $1

Then do command

sh restart.sh goldcoin
Stopping goldcoin
Starting

About : adminux

Leave a Reply

Your email address will not be published. Required fields are marked *