6

For months I've been using:

$ sudo systemctl start tor.service

but I just realized we can start tor by simply typing "tor" into a terminal. What's the proper/safest way to start and stop tor.service?

7

Normally the Tor service should be started/stopped with either sudo systemctl start/stop tor.service or sudo service tor start/stop.

Personally I've always used the service command because it is simpler. I'm guessing things get a little more complicated when you run multiple Tor instances, but I have no experience with that.

Running Tor in a terminal runs Tor as your user, and binds it to that terminal window. Running as a service allows Tor to run in the background with the proper permissions.

  • "Failed to start tor.service: Unit tor.service is masked" This error when running any of the commands above.. – Unk Aug 9 '18 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.