Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <028801c15b5a$88ee2fe0$0200a8c0@lifelesswks>
From: "Robert Collins" <robert.collins@itdomain.com.au>
To: <fred@ontosys.com>
Cc: <cygwin@cygwin.com>
References: <000001c15b2e$b9c89c80$a3eab8c3@milessabin.com> <20011022154005.A24552@ontosys.com>
Subject: Re: cygrunsrv: possible solution to a common problem -- suggested patch
Date: Tue, 23 Oct 2001 10:34:53 +1000
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-OriginalArrivalTime: 23 Oct 2001 00:39:35.0664 (UTC) FILETIME=[307B8F00:01C15B5B]

I hate to be a wet blanket, but this isn't the correct solution.

Well, actually it is, just the wrong service is being depended on.

Why not LanManWorkstation? It's the MS network client. Cygwin doesn't
depend on that, and some folk (I'm one) do not run it. In fact, folk on
Novell networks that have performance tuned their NT workstations && use
NAL for management are also unlikely to run it..

I suggest depending on the TCPIP service instead.

Rob

----- Original Message -----
From: <fred@ontosys.com>
Cc: <cygwin@cygwin.com>
Sent: Tuesday, October 23, 2001 6:40 AM
Subject: Re: cygrunsrv: possible solution to a common problem --
suggested patch


> On Mon, Oct 22, 2001 at 08:21:17PM +0100, Miles Sabin wrote:
> > suggested that adding --dep LanmanWorkstation would help.
> >
> > And it did ... automatic startup now seems to work perfectly. My
> > hunch is that this will also cure startup problems with other
daemons
> > which attempt to bind ports early on in their startup sequence.
>
> Very good!
>
> Since I've messed with the cygrunsrv source before, I took a few
> minutes to write up an addition to the cygrunsrv.README file to
> describe the solution that you found.
>
> I no longer follow the Cygwin developer lists, so I'm posting the
> suggested patch here.
>
> --
> Fred Yankowski           fred@OntoSys.com      tel: +1.630.879.1312
> Principal Consultant     www.OntoSys.com       fax: +1.630.879.1370
> OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA
>
> --
> 2001-10-22  Fred Yankowski  <fred@ontosys.com>
>
> * cygrunsrv.README: Suggest dependency on LanmanWorkstation.
>
> --
>
> Index: cygrunsrv.README
> ===================================================================
> RCS file: /home/cvs/cvsroot/src/cygrunsrv/cygrunsrv.README,v
> retrieving revision 1.2
> diff -u -p -r1.2 cygrunsrv.README
> --- cygrunsrv.README 2001/06/28 20:31:56 1.2
> +++ cygrunsrv.README 2001/10/22 20:36:21
> @@ -331,6 +331,16 @@ appropriate code to run as Windows servi
>  of cygrunsrv.
>
>  **********************************************
> +Troubleshooting
> +
> +If the service fails to start, consider whether the service process
> +depends on other services and reinstall the service using the '--dep'
> +parameter to ensure that those other services are running first.  In
> +particular, any service application that uses network services (such
> +as socket connections) depends on the "Workstation" service; this
> +dependency can be declared as '--dep LanmanWorkstation'.
> +
> +**********************************************
>  Contact Information
>
>  For support, contact the cygwin mailing list cygwin@cygwin.com.
cygrunsrv was originally created by Corinna Vinschen.
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

