up vote 0 down vote favorite
share [g+] share [fb]

I'm trying to figure out why my posgresql is failing to start on startup.. I manually run this at the terminal

# chkconfig postgresql on 
# service postgresql start 
/usr/bin/chcon: can't apply partial context to unlabelled file /var/lib/pgsql/pgstartup.log 
Initalizing database:           [  OK  ]  
Starting postgresql service:    [  OK  ]

any ideas?

link|improve this question

32% accept rate
Can you include the output of running the command "ls -Z /var/lib/pgsql/pgstartup.log"? – Matt Solnit Aug 8 '09 at 1:26
Also, this might be helpful: bugzilla.redhat.com/show_bug.cgi?id=145359 – Matt Solnit Aug 8 '09 at 1:27
feedback

1 Answer

It looks like /var/lib/pgsql/pgstartup.log does not have an SELinux label so SELinux is preventing postgres from accessing it. See this page for more info on SELinux labels.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.