Re: NT service design choices - Mailing list pgsql-ports

From Jason Tishler
Subject Re: NT service design choices
Date
Msg-id 20010521162707.F125@dothill.com
Whole thread Raw
In response to Re: NT service design choices  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: NT service design choices  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-ports
Tom,

On Mon, May 21, 2001 at 01:28:57PM -0400, Tom Lane wrote:
> Fred Yankowski <fred@ontosys.com> writes:
> >     -  Need to implement features in cygrunsrv that are specific
> >        to only the PostgreSQL case so far.  (dependency on other
> >        services, specific signals to shutdown the application,
> >        logging all output to a file, clean shutdown in event of NT
> >        shutdown).
>
> The last three would seem to be generally useful additions to cygrunsrv
> anyway.  I'm not sure what you mean by "dependency on other services".

Windows NT/2000 has the concept of a Service Control Manager (SCM) which
is responsible for managing (e.g., starting, stopping, etc.) NT services
which are the equivalent of UNIX daemons.  When a service is installed,
it can indicate to the SCM that it is dependent on one or more services.

The SCM will use this information to start/stop services in the right
order on system startup/shutdown or to automatically start a dependency
if it is not currently running.  For example, the Cygwin PostgreSQL
(i.e., postmaster) service is dependent on cygipc's ipc-daemon service.

Jason

--
Jason Tishler
Director, Software Engineering       Phone: 732.264.8770 x235
Dot Hill Systems Corp.               Fax:   732.264.8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

pgsql-ports by date:

Previous
From: Fred Yankowski
Date:
Subject: Re: NT service design choices
Next
From: Tom Lane
Date:
Subject: Re: NT service design choices