[ofw] Opensm fails to start as a service?

Smith, Stan stan.smith at intel.com
Mon Apr 23 11:09:30 PDT 2007


Thank you Tzachi. Suggestion works nicely!

The service create command becomes

	sc.exe create opensm binPath= "C:\Program Files\WinOF\opensm.exe
--service" start= auto

Stan.



Tzachi Dar wrote:
> Just to make sure what Jan wrote more clearer.
> 
> On the registry under:
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\opensm
> 
> 
> You should see something like this:
> ImagePath   "G:\Program Files\Mellanox\WinIB\Tools\opensm.exe"
--service 
> 
> If you have this set, than things should work well.
> 
> Thanks
> Tzachi
> 
>> -----Original Message-----
>> From: ofw-bounces at lists.openfabrics.org
>> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Smith, Stan
>> Sent: Saturday, April 21, 2007 2:08 AM
>> To: Jan Bottorff; ofw at lists.openfabrics.org
>> Subject: RE: [ofw] Opensm fails to start as a service?
>> 
>> Jan Bottorff wrote:
>>> I believe you need to specify "--service" as a command line option
>>> to pass to opensm when creating the service.
>>> 
>>> - Jan
>> 
>>> From a command window the observed behavior is the opensm.exe
>>> process 
>> spawns and the cmd prompt returns.
>> 'sc qc opensm' still claims the service has not started.
>> I'm starting to suspect opensm is merrily SMP'ing away
>> (Subnet Management Packet processing), but has neglected to
>> inform the Windows Service manager interface (or whatever
>> it's called) that it's alive and well. Could opensm.exe be
>> lacking the Service manager API calls? Given that it's based
>> on Linux code, it's not too far of a stretch...
>> Sounds like it's time to read some source code.
>> 
>> Thanks for the response.
>> 
>> Stan.
>> 
>> 
>> 
>> 
>>> 
>>> -----Original Message-----
>>> From: ofw-bounces at lists.openfabrics.org
>>> [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Smith, Stan
>>> Sent: Friday, April 20, 2007 2:42 PM
>>> To: ofw at lists.openfabrics.org
>>> Subject: [ofw] Opensm fails to start as a service?
>>> 
>>> 
>>> opensm.exe (Svn.614) run from a cmd window works just fine. When
>>> started as a service, sc.exe times out waiting for a response?
>>> 
>>> Suggestions on how to run opensm.exe as a service?
>>> 
>>>  C:\Program Files\WinOF>sc create opensm binPath= "c:\Program
>>> Files\WinOF\opensm.exe" start= auto [SC] CreateService SUCCESS
>>> 
>>> C:\Program Files\WinOF>sc qc opensm
>>> [SC] QueryServiceConfig SUCCESS
>>> 
>>> SERVICE_NAME: opensm
>>>         TYPE               : 10  WIN32_OWN_PROCESS
>>>         START_TYPE         : 2   AUTO_START
>>>         ERROR_CONTROL      : 1   NORMAL
>>>         BINARY_PATH_NAME   : c:\Program Files\WinOF\opensm.exe     
>>>         LOAD_ORDER_GROUP   : TAG                : 0
>>>         DISPLAY_NAME       : opensm
>>>         DEPENDENCIES       :
>>>         SERVICE_START_NAME : LocalSystem
>>> 
>>> C:\Program Files\WinOF>sc start opensm [SC] StartService FAILED
>>> 1053: 
>>> 
>>> The service did not respond to the start or control request in a
>>> timely fashion. 
>>> 
>>> C:\Program Files\WinOF>
>>> 
>>> What's missing?
>>> 
>>> Thanks,
>>> 
>>> Stan.
>>> _______________________________________________
>>> ofw mailing list
>>> ofw at lists.openfabrics.org
>>> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw
>> _______________________________________________
>> ofw mailing list
>> ofw at lists.openfabrics.org
>> http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw



More information about the ofw mailing list