delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/13/10:16:49

X-Spam-Check-By: sourceware.org
Date: Tue, 13 Mar 2007 11:15:31 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Karl M <karlm30 AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Re: [cygrunsrv] problem starting exim as service
In-Reply-To: <BAY125-F5FC8A4E10426BD726A807B57C0@phx.gbl>
Message-ID: <Pine.GSO.4.63.0703131112010.27498@access1.cims.nyu.edu>
References: <BAY125-F5FC8A4E10426BD726A807B57C0 AT phx DOT gbl>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019