- Home /
Command line to install Unity's cache server as a service on windows
I've tried both `sc.exe` and `InstallUtil.exe`.aspx) with no success.
With SC the service is at least added. But when trying to run the service I get an error: "The service did not respond to the start or control request in a timely fashion". That happens in like 2 seconds at most. I've also tried all different types.
While InstallUtil will say "The module was expected to contain an assembly manifest...", no matter what.
Anyone can give a clue on how to install it on a windows server? Thanks!
Any progress on this? I also need to convert the manual function on one of our servers.
no, no progress. I even contacted support, and they still couldn't help. sucks a lot.
Answer by Virtualware · Apr 01, 2013 at 08:20 PM
I've successfully used nssm to install it as a service, with no problem.
Perfect! Here's what worked for me:
nssm.exe install
then type in:
C:\Unity Cache Server\win\node.exe
"C:\Unity Cache Server\CacheServer.js"
Unity Cache Server
Thanks, also used nssm. Cawas' instructions didnt work, in the end I simply added the .cmd as target and did not add any arguments.