<div dir="ltr"><div><div><div>If you have systemd(*), you can just change your unit file to contain the following:<br></div>[service]<br>TimeoutSec = 60<br>Restart = always <br>RestartSec=60<br>StartLimitInterval=10<br>StartLimitBurst=500<br>
<br></div>and it will always restart the service.  <br><br><br></div>* Hard to tell on debian.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 31, 2013 at 1:10 PM, Paul Staroch <span dir="ltr"><<a href="mailto:paulchen@rueckgr.at" target="_blank">paulchen@rueckgr.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am 2013-08-31 12:06, schrieb AFO Server Operator:<br>
<div class="im">> I search for a option to restart my TOR relays after the TOR process did<br>
> crash on them? Im running TOR alpha on Debian<br>
<br>
</div>Just add something like<br>
<br>
*/5 * * * * root /etc/init.d/tor start<br>
<br>
to /etc/crontab. This will launch the init script for tor every five minutes. If tor is running, nothing will happen; if it is not running, it will be started.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Paul<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
tor-relays mailing list<br>
<a href="mailto:tor-relays@lists.torproject.org">tor-relays@lists.torproject.org</a><br>
<a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a><br>
</div></div></blockquote></div><br></div>