#!/bin/sh
# Extended watchdog: cgminer + smart-proxy

while true; do
	sleep 30s
	if ! pidof cgminer; then
		/etc/init.d/S70miner restart
	fi
	if ! pidof smart-proxy; then
		/etc/init.d/S69smartproxy start
	fi
done
