Bug 5643 - Service will not accept command line parameters
: Service will not accept command line parameters
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Windows Service
: 7.0
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-01 19:52 UTC by Brian Lucius
Modified: 2008-12-18 11:12 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Lucius 2007-10-01 19:52:27 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.
Comment 1 Brian Lucius 2007-10-01 19:57:32 UTC
*** Bug 5642 has been marked as a duplicate of this bug. ***
Comment 2 KDF 2007-10-01 20:32:35 UTC
this is probably the same as bug 4253
Comment 3 Andy Grundman 2007-11-01 11:11:01 UTC
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.
Comment 4 Chris Owens 2007-11-01 11:12:55 UTC
If this turns out to be more complicated than Andy's idea, we should push this off to a later release.
Comment 5 Michael Herger 2007-11-02 01:26:28 UTC
Change 14312 - thanks Andy :-)
Comment 6 Chris Owens 2008-03-07 09:04:19 UTC
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.