Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: bugzilla.redhat.com/show_bug.cgi?id=145359 –  Matt Solnit Aug 8 '09 at 1:27

1 Answer 1

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

 
discard

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.