From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Travis <marktrav@bellsouth.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cannot get postgres started on Fedora core 3
Date: Thu, 17 Mar 2005 17:21:48 -0500
Message-ID: <27861.1111098108@sss.pgh.pa.us> (raw)
In-Reply-To: <20050317221639.QOYR1995.imf16aec.mail.bellsouth.net@MarksLaptop>
References: <20050317221639.QOYR1995.imf16aec.mail.bellsouth.net@MarksLaptop>
"Mark Travis" <marktrav@bellsouth.net> writes:
> If I manually enter the command on the command line
> postgres -c /usr/bin/postmaster -p 5432 -D /var/lib/pgsql
> I get nothing.... not even a warning that I shouldn't start postgres as
> root.
> If I just type "postgres" on the command line.... nothing. No warnings, no
> nothing.....
I'll bet you have SELinux enforcement on. One of the less fun
properties of that thing (at least in Red Hat's current "targeted"
policy) is that it forbids daemons from writing on /dev/tty. And
the postgres executable is classified as a daemon even when you
invoke it from the command line. Net result: no error messages.
Does it work any better after "sudo /usr/sbin/setenforce 0" ?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, marktrav@bellsouth.net
Subject: Re: Cannot get postgres started on Fedora core 3
In-Reply-To: <27861.1111098108@sss.pgh.pa.us>
References: <20050317221639.QOYR1995.imf16aec.mail.bellsouth.net@MarksLaptop> <27861.1111098108@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox