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