From: | YuanyuanLiu <liuyuanyuangogo(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service |
Date: | 2015-11-03 01:46:26 |
Message-ID: | 1446515186738-5872445.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 to persist 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2015-11-03 02:28:07 | Building from git source on ubuntu with gssapi |
Previous Message | David Fetter | 2015-11-02 23:46:44 | Weighted Stats |