Re: Need some help getting started

From: Jason Tishler <jason(at)tishler(dot)net>
To: Dan <topdowndan(at)yahoo(dot)com>
Cc: pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Need some help getting started
Date: 2003-10-27 19:38:34
Message-ID: 20031027193833.GA2776@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Dan,

On Mon, Oct 27, 2003 at 10:26:02AM -0800, Dan wrote:
> But, I found the following line in the /var/logs/postmaster file.

What is the above file?

> FATAL: Can't read lock file /tmp/.s.PGSQL.5432.lock:
> Permission denied
>
> I get the following for /tmp when I type "ls -l /"
> drwxrwxrwx+ 2 Dan None 0 Oct 27 08:38
> tmp
>
> and /tmp/.s.PGSQL.5432.lock does not exist

Sounds like you are eventually going to have to solve the above problem
too.

> So, I have another question. Am I looking at the right README file?

Yes.

> I'm using /usr/doc/Cygwin/postgresql-7.3.4.README

Oh, your previous post mentioned the following:

On Sat, Oct 25, 2003 at 02:47:03PM -0700, Dan wrote:
> I'm stuck on step 9 of these instructions:
>
> http://www.tishler.net/jason/software/postgresql/postgresql-7.3.4.README

so I thought you were using the online version and not the one that is
part of the package.

> My copy of this file says to use "ntrights", not "editrights".

I just updated the above URL. Hence, the difference.

> Here again are the 2 errors logged in application
> events:
>
> Event 2
> [snip]
> postmaster : PID 1928 : starting service
> `postmaster' failed: execv: 1, Operation not permitted.
>
> Event 1
> [snip]
> postmaster : PID 968 : starting service `' <***
> failed: redirect_fd: open (1, /var/log/postmaster.log): 13, Permission denied.

If you Google on the above, you will see that my previous suggestion
solved the these problems in the past.

BTW, where did the service name go in "<***" above?

> I'm confused why this says "postmaster.log" instead of "postmaster".

The cygrunsrv usage indicates the following:

$ cygrunsrv --help

Usage: cygrunsrv [OPTION]...
[snip]
-1, --stdout <file> Optional output file used for stdout redirection.
Default is /var/log/<svc_name>.log.
[snip]

Hence, postmaster when running as a service under Cygwin usually logs to
/var/log/postmaster.log.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Frank Seesink 2003-10-28 03:54:14 Re: starting postmaster W2K service
Previous Message Dan 2003-10-27 18:26:02 Re: Need some help getting started