On Thu, 25 May 2017 08:54:00 +0000 nusenu nusenu-lists@riseup.net wrote:
I noticed your comment [1] about your plans to write a script that restarts tor should it get killed.
I just wanted to let you know that if you have plans to upgrade to Ubuntu 16.04 you will get this out of the box due to systemd Restart= [2] service configuration.
[1] https://trac.torproject.org/projects/tor/ticket/22255#comment:23 [2] https://gitweb.torproject.org/debian/tor.git/tree/debian/systemd/tor@.servic... https://www.freedesktop.org/software/systemd/man/systemd.service.html#Restar...
Or you can just put
/etc/init.d/tor start | grep -v "already running"
into your crontab at every 5 minutes or similar. If Tor is already running, this will not do anything, i.e. won't launch a duplicate or anything of that sort. And in case it crashed, you will get an E-Mail automatically (assuming you set up your crontab MAILTO= and system's MTA properly) telling you that it has been started (again), letting you to keep assessing frequency of the issue.