From: | Adam Ruth <adamruth(at)mac(dot)com> |
---|---|
To: | garry(at)schoolteachers(dot)co(dot)uk |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: windows service |
Date: | 2009-05-03 22:17:48 |
Message-ID: | A61A1282-1883-489B-A13E-13B524EB565E@mac.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
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(at)schoolteachers(dot)co(dot)uk 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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
From | Date | Subject | |
---|---|---|---|
Next Message | John R Pierce | 2009-05-03 23:24:00 | Re: windows service |
Previous Message | Brent Wood | 2009-05-03 20:33:18 | Re: Online Backups PostGre (rsync for Windows) |