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

Поиск
Список
Период
Сортировка
От YuanyuanLiu
Тема Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service
Дата
Msg-id 1446515186738-5872445.post@n5.nabble.com
обсуждение исходный текст
Ответ на Re: Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: Re: Why not to use 'pg_ctl start -D ../data' to register posgtresql windows service
Список 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 по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Weighted Stats
Следующее
От: Jeff Janes
Дата:
Сообщение: Building from git source on ubuntu with gssapi