X-Spam-Check-By: sourceware.org
Date: Tue, 13 Mar 2007 11:15:31 -0400 (EDT)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Karl M <karlm30@hotmail.com>
cc: cygwin@cygwin.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@phx.gbl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@cs.nyu.edu | igor@watson.ibm.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/

