Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service - Mailing list pgsql-hackers

From YuanyuanLiu
Subject Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service
Date
Msg-id 1446515186738-5872445.post@n5.nabble.com
Whole thread Raw
In response to Re: Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
Yup, I think I totally understand now,  the registered postgres service is
different from  "pg_ctl start".  To start the postgres windows service needs privileged prompt (to execute
net or sc command) or manually(start or stop in windows service list).After
the service is started, it can be recognized by the SCM and will persist
even if the prompt that started it is closed.  While,  using "pg_ctl start " needn't privileged prompt(normally prompt
also ok), but after a service started, it cannot recognized by the SCM and
will stop immediatlly when the prompt that started it is closed.  I think registering postgres windows service is aim
topersist the
 
service when the prompt that started it need to be closed.    I really learned a lot from you, and thank you!
Regards!

Liu Yuanyuan




--
View this message in context:
http://postgresql.nabble.com/Why-not-to-use-pg-ctl-start-D-data-to-register-posgtresql-windows-service-tp5872282p5872445.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.



pgsql-hackers by date:

Previous
From: David Fetter
Date:
Subject: Weighted Stats
Next
From: Jeff Janes
Date:
Subject: Building from git source on ubuntu with gssapi