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 can't figure out where the the mongrel_rails process is getting started on an Amazon EC2 box. I am launching this instance:

Ruby on Rails Web Starter (AMI Id: ami-bf3968fa)

I think there is a non standard script getting run:

/home/webuser/helloworld/restart.sh

but I don't see any way that it is getting hit from rc3.d or rc5.d since there is no link to that script anywhere in those directories. I can't find any instance of any call to that script in /etc at all. Where is heck is that process getting started?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Finally found the answer! Writing this down so I can find this again.

This AMI image has a brain dead installation. The rails services are not being started by the init.d scripts. Note that both the mysqld service and the rails_mogrel are being started by crontab!??!! Why would anyone do this?

more /var/spool/cron/root 

will return:

# restart your mongrel server
@reboot /bin/sh /home/webuser/helloworld/restart.sh
@reboot /bin/sh /etc/init.d/mysqld start

I edited crontab for root via:

crontab -e

and rebooted and noticed that rails was not running!

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.