You can also use monit to monitor the process and it can restart it or alert you via email if it quit or both. <span></span><br><br>On Friday, June 13, 2014, John Price <<a href="mailto:jp_luna@gcfl.net">jp_luna@gcfl.net</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How about something much simpler...<br>
<br>
#!/bin/sh<br>
while /bin/true; do<br>
bfgminer <various command line params><br>
sleep 10 #wait a bit so if there's a real problem you don't hammer the<br>
server<br>
done<br>
<br>
<br>
<br>
On Fri, Jun 13, 2014 at 8:32 PM, Michael W. Hall <<a href="javascript:;" onclick="_e(event, 'cvml', 'hallmw@att.net')">hallmw@att.net</a>> wrote:<br>
<br>
> Ok. I have a question. I am mining BTC. Have been since February. I<br>
> am running bfgminer. I have it running, but would like to improve it.<br>
> When I am away from home (work or vacation), the bfgminer program will<br>
> stop.<br>
><br>
> I know I can do it just not sure how to go about it. I would like the<br>
> system to check every 5 minutes or so if the bfgminer is running. If it<br>
> is then do nothing. If it is not then I would like to restart. I have<br>
> to start the program like so,<br>
><br>
> bfgminer <various command line params><br>
><br>
> Any ideas on the best way to do this?<br>
><br>
> Thanks,<br>
> Michael<br>
><br>
> _______________________________________________<br>
> LUNA mailing list<br>
> <a href="javascript:;" onclick="_e(event, 'cvml', 'LUNA@lunagroup.us')">LUNA@lunagroup.us</a><br>
> <a href="http://lunagroup.us/mailman/listinfo/luna" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lunagroup.us/pipermail/luna/attachments/20140613/8f743ab7/attachment.html" target="_blank">http://lunagroup.us/pipermail/luna/attachments/20140613/8f743ab7/attachment.html</a>><br>
_______________________________________________<br>
LUNA mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'LUNA@lunagroup.us')">LUNA@lunagroup.us</a><br>
<a href="http://lunagroup.us/mailman/listinfo/luna" target="_blank">http://lunagroup.us/mailman/listinfo/luna</a><br>
</blockquote>