PDA

View Full Version : Windows service command line options



JJZolx
2006-10-02, 13:49
Does anyone know exactly how to pass command line options to the SlimServer EXE Windows service?

In the registry, for the SlimServer service located at

HKLM\SYSTEM\CurrentConrolSet\Services\slimsvc

I've set the ImagePath value to


"C:\Program Files\SlimServer for Windows\server\slim.exe" --playeraddr 192.168.9.5 --httpaddr 192.168.9.5 --httpport 80 --cliaddr 192.168.9.5 --streamaddr 192.168.9.5 --noupnp --logfile "D:\slimserver\slimserver1.log" --d_info

But it doesn't appear to work. No log file is created and there's nothing of note in the Windows Event log.

JJZolx
2006-10-02, 13:59
But it doesn't appear to work. No log file is created and there's nothing of note in the Windows Event log.
I can say that the service does start up, since I can see in the Windows event log that the built-in MySQL server is started, then 2-4 seconds later it's shut down.

JJZolx
2006-10-02, 14:24
Hmmm... Runs from the command line just fine. I think I've seen this before... for some reason not all of the options make it to the server when run as a service.

Browny
2006-10-03, 05:15
not a fix, but maybe a workaround:

Instead of running the service with the exe and the switches try creating a batch file that has the formatted command in it and set the batch file to run as a service.