X-Spam-Check-By: sourceware.org Date: Tue, 13 Mar 2007 11:15:31 -0400 (EDT) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Karl M cc: cygwin AT cygwin DOT com Subject: Re: Re: [cygrunsrv] problem starting exim as service In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Ugh, top-posting... Reformatted. On Tue, 13 Mar 2007, Karl M wrote: > > From: "Wynfield Henman" Subject: Re: Re: [cygrunsrv] problem starting exim > > as service > > Date: Tue, 13 Mar 2007 14:31:41 +0900 > > > > [snip] > > I believe that it should show this process as running (but > > some say that exim detaches itself and so cygrunsrv can't know about > > it).. if would know if it did a process check, but that's another > > matter.. > > Hi All... > > Cygrunsrv needs the process to stay attached so it can keep track of it > for you. Services are managed differently on Windows than on *ix. That's not quite true. Yes, the SCM (Windows' Service Control Manager) does need a process to be attached, but that process is cygrunsrv, not the program running as service. > Exim has command line options to allow this (-bdf instead of -bd). I've > never used exim, but looked in the FAQ. > > If you can't keep exim from detaching, you can create a wrapper script > around exim that does not detach. This can be as simple or fancy (keep > track of the pid for signalling) as you like. Cygrunsrv already has support for this. Take a look at the --pidfile option. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!) |,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! Freedom is just another word for "nothing left to lose"... -- Janis Joplin -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/