This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: inetd doesn't work until stopped and restarted


Charles Wilson [cwilson@ece.gatech.edu] writes:

> This probably has to do with the order in which Windows System services
> are started. e.g. if inetd depends on, say, 'windows socket services'(*)
> then if inetd is started at bootup *before* WSS, it'll fail. However,
> once the machine is running, then you can restart inetd and it'll work
> because WSS is up.
>
> I seem to remember some article in the Microsoft Knowledge Base about
> this, and how to resolve it -- but no specifics. Hunt around at
> support.microsoft.com.
> 
> (*) 'WSS' is an imaginary service I made up. But you get the idea.

A good dependency might be the TDI (transport driver interface) group, which
should ensure it starts up once all the base networking support is
operational.  This is the same group that MS's workstation and server
services depend on.

If you have the MS SDK, there's a convenient utility, 'sc', there that can
be used:

   sc config inetd dependencies= +tdi

(The + means group)  I don't know if sc can be downloaded directly from the
MS site or not.

Or, if you don't mind plugging away at registry entries, the dependencies
can be found at:

   Key: HKLM\System\CurrentControlSet\Services\inetd
   Value: DependOnGroup (REG_MULTI_SZ)
   Data: TDI

The value probably won't be present if there aren't any dependencies, so
just create the value.  You should be able to use regtool with:

   regtool -m set
'HKLM\System\CurrentControlSet\Services\inetd\DependOnGroup' TDI

-- David

/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l@fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]