Re: Postgres: Starting Server in background mode

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: CM J <postgres(dot)newbie(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres: Starting Server in background mode
Date: 2009-04-09 10:22:13
Message-ID: 49DDCC55.9050309@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

CM J wrote:
> Hi,
>
> To start the postgres server in background mode in windows, i
> executed the following command:
>
> *runas /user:postgres "D:\postgres_new\pgsql\bin\pg_ctl.exe -W start -D
> D:\postgres_new\pgsql\data -l D:\postgres_new\pgsql\data\logfile"*
>
> The postgres starts up all fine and logs get redirected.However, a
> command window gets opened which says "server starting...". How do i disable
> this command window ?

Run Pg as a service, and use the "net" command or the "services.msc"
snapin to start/stop the service.

The GUI installer sets Pg up as a service by default. Why not use that?

--
Craig Ringer

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message CM J 2009-04-09 11:23:06 Re: Postgres: Starting Server in background mode
Previous Message CM J 2009-04-09 09:59:30 Postgres: Starting Server in background mode