Bugzilla – Bug 5643
Service will not accept command line parameters
Last modified: 2008-12-18 11:12:53 UTC
With SlimServer running under Win2K Server, I am trying to pass the parameter of the internal IP address of the host so that the service does not run using the external IP of my ISP. If I start the service as installed, the following settings are chosen by default: VERSION INFO SlimServer Version: 6.5.5 - 13409 - Windows 2000 - EN - cp1252 Server IP address: 65.184.122.159 Perl Version: 5.8.8 MSWin32-x86-multi-thread MySQL Version: 5.0.22-community-nt If I run the server manually from the command line: c:\program files\slimserver\server\slim.exe --playeraddr 192.168.169.244 SlimServer runs with the desired configuration: VERSION INFO SSlimServer Version: 6.5.5 - 13409 - Windows 2000 - EN - cp1252 Server IP address: 192.168.169.244 Perl Version: 5.8.8 MSWin32-x86-multi-thread MySQL Version: 5.0.22-community-nt If I change the registry key for the SlimServer service from c:\program files\slimserver\server\slim.exe to c:\program files\slimserver\server\slim.exe --playeraddr 192.168.169.244 the server runs as the default address and does not use the requested internal IP address. The registry key being modified is: HKLM\System\CurrentControlSet\Services\slimsvc\ImagePath I have tried passing the --logfile parameter to the service also and I do not get a log file. Yet when running from the command line with the log file option, a log file is then created. I believe that slim.exe is not accepting any command line parameters when called from the service manager in Windows. Can you confirm this for me and if my findings are accurate consider this feature in a future release? I started with 6.5.2, upgraded to 6.5.5 and also tried 7.0a1, the results were consistent across versions.
*** Bug 5642 has been marked as a duplicate of this bug. ***
this is probably the same as bug 4253
Do we just need to call main::initOptions() in Startup() before main::init()? When running as a service we don't go through the normal main() method.
If this turns out to be more complicated than Andy's idea, we should push this off to a later release.
Change 14312 - thanks Andy :-)
This bug is being closed since it was resolved for a version which is now released! Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html If you are still seeing this bug, please re-open it and we will consider it for a future release.