Search Postgresql Archives

Re: Starting a cluster as a service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry. I added some "< raw >" tags so maybe this is the reason why you
couldn't see half of my message.

 

Hi again,

It looks like the problem comes from the "-l" option I'm trying to set when
I register the service.

1) If I register the cluster as a service in the following way:

-------------------------------------------------------------------------------------------
dos ; a_user> pg_ctl.exe register -N a_pgcluster_srv -U a_user -P a_password
-D "a_pgcluster" -S auto -w -t 60
-------------------------------------------------------------------------------------------

It works: the service is automatically started properly.

2) If I add the following option:

-------------------------------------------------------------------------------------------
-o "-l '<path_to_the_cluster_log_file>/a_pgcluster.log'"
-------------------------------------------------------------------------------------------

and then try to start the service (via "Control Panel" -> "Administrative
Tools" -> "Services"), it fails with the message:

-------------------------------------------------------------------------------------------
"The a_pgcluster_srv service on Local Computer started and then stopped. 
Some services stop automatically if they have no work to do, for example,
the Performance Logs and Alerts service."
-------------------------------------------------------------------------------------------


Is this not the right way to set the cluster log file?
Or maybe this should be set in the cluster "postgresql.conf" configuration
file instead?

Thanks for helping.
Best regards.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Starting-a-cluster-as-a-service-tp5712728p5713070.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux