<tor.exe --service install -options -f ...\torrc> returns Error 1064 on Windows
tor --service install -options -f C:\tor\torrc
from https://www.torproject.org/docs/faq#NTService failed to start the service (Error 1064: An exception occured in the service when handling the control request).
But other options works:
tor.exe --service install -options ControlPort 9051
start the Tor Win32 Service and creates the folder C:\Documents and Settings\LocalService\Application Data\tor - tor.exe works like a client only (no disk torrc file, no relay keys). This is useless because i can't use my torrc and run the relay.
The only way to create a running tor service for a relay is to use the "sc create..." in cmd command line as irc#tor<coderman_> suggested. So this is how it works:
sc create "Tor Win32 Service" binPath= "\"C:\tornou\Tor\tor.exe\" --nt-service -f \"C:/tornou/Data/Tor/torrc\""
returns ImagePath="C:\tornou\Tor\tor.exe" --nt-service -f "C:/tornou/Data/Tor/torrc" and the service is running.
From this point of view, if nobody will fix the related bug, the https://www.torproject.org/docs/faq#NTService may be updated with this "sc create... working option".
Regards, torQUES
Trac:
Username: TORques