[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] Option to restart TOR automatically after it did crash?



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@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays