Tor stays at background after closing the terminal. How can I make it behave like in Windows (Tor only functions while the cmd is still running). I'm using Tor by just entering tor command in terminal -> firefox proxy settings (without tor browser).

I've specified RunAsDaemon 0 in torrc but it seems to have no effect.

  • Then it should stop once the terminal stops, ensure you're not specifing RunAsDaemon 1 in your torrc or in the command line. – cacahuatl Mar 20 '17 at 23:19
  • then it's probably related to however your terminal is closing, it's not taking child processes with it. just use ctrl-c then close the terminal. – cacahuatl Mar 22 '17 at 19:42
  • Do you just enter tor or something like tor -f torrc? – Jens Kubieziel Mar 23 '17 at 11:24

Here's the Linux way to do it:

In a terminal, use "sudo service tor stop." If that doesn't work, try going to System Monitor and ending the process from there. If THAT doesn't work, go to your terminal and type in "sudo killall tor". That should make Tor go away.

| improve this answer | |

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.