| From: | Magnus Hagander <mha(at)sollentuna(dot)net> | 
|---|---|
| To: | "'Fred Yankowski'" <fred(at)ontosys(dot)com>, pgsql-hackers(at)postgresql(dot)org | 
| Subject: | RE: plan for running postmaster directly as NT service | 
| Date: | 2001-01-27 15:58:16 | 
| Message-ID: | 215896B6B5E1CF11BC5600805FFEA821048016DE@sirius.edu.sollentuna.se | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
> d) How can we insure that the ipc-daemon service starts before the
> postgres/postmaster service?  I believe that NT has some facility that
> allows one service to request start-up of another service, but I have
> no idea how to make that happen.
You can use Service Dependencies for this. In you call to CreateService()
for the service, specify a value for the "lpDependencies" parameter. This
parameter holds a pointer to a double null-terminated array of
null-separated names of services that this service depends on. The Service
Control Manager will make sure these services start first, so the
dependencies are satisfied.
So just add the ipc-daemon service there, and the rest should happen
automatically.
See:
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/winbase/serv
ices_3p9h.htm
//Magnus
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-01-27 16:03:10 | Re: plan for running postmaster directly as NT service | 
| Previous Message | Kovacs Zoltan | 2001-01-27 15:44:35 | Re: wrong query plan in 7.1beta3 |