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 running Phusion Passenger on RHEL, hosting a Rails application.

I can successfully start up a passenger instance on Apache startup using the Passenger setting PassengerPreStart, but only if I start up Apache using apachectl start.

If I start up Apache using the RHEL convention of service httpd start, then PassengerPreStart is not executed. That is, no passenger instance is loaded on Apache startup.

I've compared the two scripts (apachectl and the service httpd script) for differences but can't find anything different between them that would account for the difference in behavior.

I could write a init script to start up Apache using apachectl, but thought first I would ask if anyone has seen this difference on how apachectl and service http interact with Apache modules, and in particular, with Passenger's PassengerPreStart setting and explain it.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.