Re: Can't start service but works from command line

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Can't start service but works from command line
Date: 2009-05-24 07:05:33
Message-ID: gvarjt$lk0$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dejan wrote on 24.05.2009 01:19:
> Computer which hosted a database crashed, but I managed to save "data"
> folder. I copied it to another computer and pointed postgres to that folder
> (stopping the service first). But, the service cannot start. Progress bar
> just goes for awhile, and then a pop-up tells me that the service stopped.
>
> I found in Services that command for starting the service is this
>
> "C:\Program Files\PostgreSQL\8.2\bin\pg_ctl.exe" runservice -w -N
> "pgsql-8.2" -D "f:\PostgreSQL\data\"

Hmm, the command to start a service in Windows is "net start serviceName", so
that should be:

net start "pgsql-8.2"

in your case.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-05-24 07:38:42 Re: Can't start service but works from command line
Previous Message mnavahan 2009-05-24 04:47:01 do postgresql this job for me ? (firebird user)