Search Postgresql Archives

Re: windows service

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

 



One option is sc.exe command.

sc create postgresql binPath= "^"c:\scholarpack\postgres\bin \pg_ctl.exe^" runservice -w -N ^"P4^" -D ^"c:\scholarpack\data^"" - start auto

On 03/05/2009, at 9:32 PM, garry@xxxxxxxxxxxxxxxxxxxx wrote:

Anyone know how to install Postgresql as a windows service from the command
line.
I have this as the correct syntax:
"c:\scholarpack\postgres\bin\pg_ctl.exe" runservice -w -N "P4" -D
"c:\scholarpack\data"

Where P4 is the name of the service. However, I can not get the sc command to
accept the above string on the command line. Any help would be much
appreciated.
Regards
Garry

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


--
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