Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <028801c15b5a$88ee2fe0$0200a8c0@lifelesswks> From: "Robert Collins" To: Cc: References: <000001c15b2e$b9c89c80$a3eab8c3 AT milessabin DOT com> <20011022154005 DOT A24552 AT ontosys DOT 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: Cc: 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 AT OntoSys DOT 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 > > * 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 AT cygwin DOT 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/