Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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: – Matt Solnit Aug 8 '09 at 1:27

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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