Hi, everyone.
I ran a Tor relay on ubuntu 22.04 following the Tor tutorial ( website link). Eventually, I started the Tor process using the command ‘systemctl restart tor@default’ . May I ask how you configure the systemctl command to allow Tor to restart?
Thanks!
I just learned about using the systemctl edit tor@default command to change the configuration, and then enter the commands Restart=on-failure and RestartSec=5s. so that Tor can be restarted after a crash.
Do you advocate using Restart=always or Restart=on-failure?
On Ubuntu 24.04, across ~300 relays, I use Restart=on-failure.
I haven’t had issues with this.
I also just use the defaults for /usr/lib/systemd/system/tor@.service, which this is part of.
I install the tor relays with tor-instance-create and it configures all these aspects with great defaults.