[tor-bugs] #18111 [Tor bundles/installation]: Add ability to run Tor as Windows service

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Jan 20 16:13:47 UTC 2016

#18111: Add ability to run Tor as Windows service
     Reporter:  xvilka                    |      Owner:  erinn
         Type:  enhancement               |     Status:  new
     Priority:  Medium                    |  Milestone:
    Component:  Tor bundles/installation  |    Version:  Tor: unspecified
     Severity:  Normal                    |   Keywords:
Actual Points:                            |  Parent ID:
       Points:                            |    Sponsor:
 Now, when Vidalia is not available anymore, what do you think about
 including simple *.bat file, that add Tor.exe as Windows service to

 command inside this bat file should be

 sc.exe create <new_service_name> binPath=

 See http://stackoverflow.com/questions/3582108/create-windows-service-

 But this will require to build Tor.exe with special main function:

 VOID WINAPI ServiceMain(
   _In_ DWORD  dwArgc,
   _In_ LPTSTR *lpszArgv

 See https://msdn.microsoft.com/en-

 Or it could be a simplest wrapper running Tor.exe

 So people wouldn't need to run it every time from console. After running
 this script Tor will be added as a service and will be started
 automatically on reboot.

 This bug inspired by personal experience, after killing Vidalia and a
 questions in the internet:



Ticket URL: <https://trac.torproject.org/projects/tor/ticket/18111>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the tor-bugs mailing list