Bug 5642 - Service will not accept command line parameters
: Service will not accept command line parameters
Status: RESOLVED DUPLICATE of bug 5643
Product: Logitech Media Server
Classification: Unclassified
Component: Windows Service
: 7.0
: PC Windows (legacy)
: P2 normal (vote)
: ---
Assigned To: Squeezebox QA Team email alias
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-01 19:51 UTC by Brian Lucius
Modified: 2007-10-01 19:57 UTC (History)
0 users

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:51:36 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
(In reply to comment #0)
> This is a duplicate of 5643. Sorry about the trouble.

*** This bug has been marked as a duplicate of 5643 ***