Option to restart TOR automatically after it did crash?

Hello, I search for a option to restart my TOR relays after the TOR process did crash on them? Im running TOR alpha on Debian Thanks for help

Am 2013-08-31 12:06, schrieb AFO Server Operator:
I search for a option to restart my TOR relays after the TOR process did crash on them? Im running TOR alpha on Debian
Just add something like */5 * * * * root /etc/init.d/tor start 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. Paul

If you have systemd(*), you can just change your unit file to contain the following: [service] TimeoutSec = 60 Restart = always RestartSec=60 StartLimitInterval=10 StartLimitBurst=500 and it will always restart the service. * Hard to tell on debian. On Sat, Aug 31, 2013 at 1:10 PM, Paul Staroch <paulchen@rueckgr.at> wrote:
Am 2013-08-31 12:06, schrieb AFO Server Operator:
I search for a option to restart my TOR relays after the TOR process did crash on them? Im running TOR alpha on Debian
Just add something like
*/5 * * * * root /etc/init.d/tor start
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.
Paul
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

On Sat, Aug 31, 2013 at 10:06:58AM +0000, AFO Server Operator wrote:
I search for a option to restart my TOR relays after the TOR process did crash on them? Im running TOR alpha on Debian
Why does it crash? https://trac.torproject.org/projects/tor/wiki/doc/TorFAQ#MyTorkeepscrashing. --Roger
participants (4)
-
AFO Server Operator
-
Dennis Ljungmark
-
Paul Staroch
-
Roger Dingledine