[omniORB] Running omniNames as a service on NT.

Mike Bendickson bendi003@tc.umn.edu
Fri, 18 Jun 1999 16:43:55 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0048_01BEB9A9.C129B460
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm having a tough time with the srvany utility.  I can't get any =
windows app to run as a service using it.  I must be screwing something =
up with my registry settings as it does work in manual mode specifying =
the=20

Here are my registry settings under =
HKEY_LOCAL_MACHINE->SYSTEM->CurrentControlSet->Services->omniNames:

Application: "c:\omninames\omninames.exe"
AppDirectory: "c:\omninames"
Parameters: "-logdir c:\omninames\logdir -errlog =
c:\omninames\omninames.log"

Here's the error I'm getting:

Could not start the omniNames service on \\MYMACHINE
Error 2140: An internal windows NT error occurred.

No hints show up in the Application Log.

To simplify things, I copied notepad.exe to c:\ and tried running that =
as a service:

Application: "c:\notepad.exe"
AppDirectory: deleted
Parameters: deleted

No good.  Same error.

But, if I delete the registry entries and specify the following in the =
Startup Parameters field in the services control panel window:

c:\\omninames\\omninames.exe -logdir c:\\omninames\\logdir -errlog =
c:\\omninames\\logdir\\omninames.errlog

and start it manually, it works fine.

Any ideas?

Thanks,
-Mike

------=_NextPart_000_0048_01BEB9A9.C129B460
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I'm having a tough time with the srvany =
utility.&nbsp; I can't=20
get any windows app to run as a service using it.&nbsp; I must be =
screwing=20
something up with my registry settings as it does work in manual mode =
specifying=20
the </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Here are my registry settings under=20
HKEY_LOCAL_MACHINE-&gt;SYSTEM-&gt;CurrentControlSet-&gt;Services-&gt;omni=
Names:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Application: =
"c:\omninames\omninames.exe"</FONT></DIV>
<DIV><FONT size=3D2>AppDirectory: "c:\omninames"</FONT></DIV>
<DIV><FONT size=3D2>Parameters: "-logdir c:\omninames\logdir -errlog=20
c:\omninames\omninames.log"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Here's the error I'm getting:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Could not start the omniNames service on <A=20
href=3D"file://\\MYMACHINE">\\MYMACHINE</A></FONT></DIV>
<DIV><FONT size=3D2>Error 2140: An internal windows NT error=20
occurred.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>No hints show up in the Application =
Log.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>To simplify things, I copied notepad.exe to c:\ and =
tried=20
running that as a service:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>Application: "c:\notepad.exe"</FONT></DIV>
<DIV><FONT size=3D2>AppDirectory: deleted</FONT></DIV>
<DIV><FONT size=3D2>Parameters: deleted</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>No good.&nbsp; Same error.</DIV>
<DIV>&nbsp;</DIV>
<DIV>But, if I delete the registry entries and specify the following in =
the=20
Startup Parameters field in the services control panel window:</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<DIV>c:\\omninames\\omninames.exe -logdir c:\\omninames\\logdir -errlog=20
c:\\omninames\\logdir\\omninames.errlog</DIV>
<DIV>&nbsp;</DIV>
<DIV>and start it manually, it works fine.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any ideas?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>-Mike</DIV></FONT></DIV></DIV></BODY></HTML>

------=_NextPart_000_0048_01BEB9A9.C129B460--