Postgresql does not start on reboot - Mailing list pgsql-general

From Clodoaldo Pinto
Subject Postgresql does not start on reboot
Date
Msg-id a595de7a0607011148u59556a3ayf2c87df267e1bc1b@mail.gmail.com
Whole thread Raw
Responses Re: Postgresql does not start on reboot  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Postgresql does not start on reboot but starts normally with "pg_ctl
start". Running FC5 with selinux enabled.

# chkconfig --list postgresql
postgresql      0:off   1:off   2:on    3:on    4:on    5:on    6:off

/etc/selinux/config:

SELINUX=enforcing
SELINUXTYPE=targeted
SETLOCALDEFS=0

In /var/log/messages there is this message:

kernel: audit(1151719618.110:4): avc:  denied  { search } for
pid=1849 comm="postmaster" name="/" dev=sdb1 ino=2
scontext=system_u:system_r:postgresql_t:s0
tcontext=system_u:object_r:file_t:s0 tclass=dir

There is a simlink in /var/lib/pgsql/data pointing to /disk2/pg_xlog
which is in sbd1 and is owned by postgres.

If is this a selinux problem, how can I configure it to let postgres
use the pg_xlog dir in /disk2 on startup?

Regards, Clodoaldo Pinto

pgsql-general by date:

Previous
From: Alan Hodgson
Date:
Subject: Re: SELECT statement in stored procedure
Next
From: Tom Lane
Date:
Subject: Re: Postgresql does not start on reboot