Re: windows service - Mailing list pgsql-general

From John R Pierce
Subject Re: windows service
Date
Msg-id 49FE2790.9060609@hogranch.com
Whole thread Raw
In response to Re: windows service  (Adam Ruth <adamruth@mac.com>)
List 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...







pgsql-general by date:

Previous
From: Adam Ruth
Date:
Subject: Re: windows service
Next
From: Bill Moseley
Date:
Subject: Re: Tracking down a deadlock