Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do I stop Tor from starting automatically on startup? It is Ubuntu Server so I don't have any GUI.

share|improve this question
add comment

2 Answers

This is quite confusing. Generally you can edit /etc/default/tor and set there RUN_DEAMON="no". Now Vidalia should start its own tor and tor should not start at startup.

share|improve this answer
    
That doesn't seem confusing to me. Thanks for the advice! –  Limited Atonement Mar 11 at 19:33
add comment

You have several options here. For a GUI user I'd suggest using bum like this answer. However you are using a server and at the moment Tor has not moved to upstart, so you can use udate-rc.d or rm.

  1. Enter sudo update-rc.d -f tor remove. This removes all symlinks and at the next reboot Tor will not start. The answer to "Chkconfig alternative for Ubuntu Server?" discusses this.
  2. Enter sudo update-rc.d tor disable. This changes the start script to a stop script and effectivly also disables Tor starting at boot time. The answer to "how to stop apache2, mysql from starting automatically as computer starts?" discusses this method.
  3. As SystemV only uses symbolic links, you can use rm to remove these: sudo rm /etc/rc?.d/S*tor. This deletes every file in the rcX.d subdirectories (X stands for a number or S) which starts with the letter S (for Start script) and ends with tor.
  4. The same effect has a combination of find and rm: find /etc/rc?.d -type l -name "S*tor" -exec rm {} \;. This looks specific for symbolic links.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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