Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Date: Mon, 15 Aug 2005 21:21:38 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Herb Martin <HerbM@learnquick.com>
cc: cygwin@cygwin.com
Subject: RE: Anyone running spfd on Cygwin? (Attn: cygrunsrv maintainer)
Message-ID: <Pine.GSO.4.61.0508152105560.9560@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Thu, 11 Aug 2005, Herb Martin wrote:

> > [mailto:cygwin-owner@XXXXXX.XXX] On Behalf Of Brian Dessent
> > Sent: Wednesday, August 10, 2005 5:45 PM
> > To: cygwin@XXXXXX.XXX
> > Subject: Re: Anyone running spfd on Cygwin?

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> [snip]
> Can a Cygwin program that is being run as a service be effectively sent
> a "HUP" to get it to re-read it's configuration?
>
> Assumptions:  That service accepts HUP and reloads its configuration
> when run as a daemon.
>
> Or must such services be stopped and restarted completely?

Yes, but you'll need to send SIGHUP to the program process, and not to the
corresponding cygrunsrv process, since, IIRC, cygrunsrv itself will
unconditionally terminate the child daemon on SIGHUP (and SIGTERM, and
SIGQUIT, and SIGINT).

Corinna, perhaps cygrunsrv should pass explicit SIGHUPs to the child
instead (unless --termsig is HUP)?  Or, better yet, pass the signal to
send as an argument to terminate_child()?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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/

