Re: windows service

From: John R Pierce <pierce(at)hogranch(dot)com>
To: Adam Ruth <adamruth(at)mac(dot)com>
Cc: garry(at)schoolteachers(dot)co(dot)uk, pgsql-general(at)postgresql(dot)org
Subject: Re: windows service
Date: 2009-05-03 23:24:00
Message-ID: 49FE2790.9060609@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adam Ruth wrote:
> 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

except, on a SC CREATE, you'd need to specify a lot more than just the
binpath. I'd suspect at least obj= username password= password

Far better to use the pg_ctl register command as Dave Page said...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message PostGre Newbie 2009-05-04 00:28:41 Re: Online Backups PostGre
Previous Message Adam Ruth 2009-05-03 22:17:48 Re: windows service