Opened 4 years ago

Last modified 3 years ago

#21081 new defect

tor --service install -options does not work

Reported by: PekaFat Owned by: cypherpunks
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: windows ntservice win32 tor-relay
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Hello, i use Expert Bundle (git-31e7b47fbebe8caf) and when I try to add Tor service on Windows 10 x64 1607 14393.576 with this command:
c:\Tor>tor --service install -options -f C:\Tor\tor.conf

I got this:
Running on a Post-Win2K OS, so we'll assume that the LocalService account exists.
Done with CreateService.
Service installed successfully
Service failed to start : Error Service under the command processing.

In services app same error, but also i see this:
"c:\Tor\tor.exe" --nt-service "-f" "C:\Tor\tor.conf"

Maybe issue in quotes, but even if I manually edit this service in regedit to:

"c:\Tor\tor.exe" --nt-service -f C:\Tor\tor.conf


"c:\Tor\tor.exe" --nt-service -f tor.conf

I got another error:

Service did not respond to the request in a timely manner.

All other services running fine.

Child Tickets

Attachments (2)

1.png (18.0 KB) - added by PekaFat 4 years ago.
2.PNG (47.7 KB) - added by PekaFat 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by PekaFat

Attachment: 1.png added

Changed 4 years ago by PekaFat

Attachment: 2.PNG added

comment:1 Changed 4 years ago by PekaFat

Component: - Select a componentApplications/Quality Assurance and Testing
Owner: set to cypherpunks

comment:2 Changed 4 years ago by PekaFat

When i install tor service with --service install all is fine, but where he stored files like "cached-certs" etc? When i start just tor.exe this files is saved here - C:\Users\User\AppData\Roaming\tor but when i start tor with service without any parameters and options i just can't find this files nowhere.

comment:3 Changed 4 years ago by cypherpunks

Component: Applications/Quality Assurance and TestingCore Tor/Tor

comment:4 Changed 4 years ago by nickm

Keywords: windows ntservice added
Milestone: Tor: unspecified

comment:5 Changed 4 years ago by PekaFat

Until it's fixed i found another way to run tor with my settings at system start:

  1. Download
  1. Put cmdow in tor folder
  1. Create .bat file with "cmdow.exe /RUN /HID tor.exe -f tor"
  1. Put bat file in autostart folder or task scheduler



Create .vbs file with line:

CreateObject("Wscript.Shell").Run "tor.exe -f tor",0,True

And put it in autostart folder.

Last edited 4 years ago by PekaFat (previous) (diff)

comment:6 Changed 3 years ago by nickm

Keywords: win32 tor-relay added
Note: See TracTickets for help on using tickets.