Mysql / mongrel do not start after reboot


#1

Hi everyone,
I have a working ubuntu server deployed using capistrano and deprec.
after the initial installation everything worked fine - but after
rebooting only the apache server (httpd) started and mysql/mongrel were
down. It seems that in rc2.d everything is set up find (there are
symlinks to mysql and mongrel_cluster, and when I call them manually
they start up alright) but they are not executed.

also, I see the is ps -ef “init [2]” is still running. The last time I
actually worked on a unix server is 4 years ago, and I can’t remember if
that means initialization is still running (and stuck) or that it jsut
stays up this way.

can anyone please help? this is really annoying! :slight_smile:

Thanks,
Ehud


#2

Hi Ehud,

to the best of my knowledge, the recommendation on the list has been
to use monitoring utilities like monit to make sure instances get
restarted.

hope this helps,
Oliver

2007/4/23, Ehud R. removed_email_address@domain.invalid:


#3

On 4/25/07, Oliver B. removed_email_address@domain.invalid wrote:

to the best of my knowledge, the recommendation on the list has been
to use monitoring utilities like monit to make sure instances get
restarted.

Yup. If the only thing in the /etc/inittab is monit, and then every
other service is listed in monit configuration (with appropriate
start/stop commands), then monit will start everything on boot.

The main benefit of this approach is that you don’t write the same
command in two different places, and startup of services happens in
the same way on boot and on failure. Monit is also much smarter about
service state, it can deal with zombie processes, RAM or file
descriptor leaks, endless loops etc.

The drawback is that init restarts crashed services immediately,
whereas monit does it on the next monitoring cycle (which may easily
be a minute away).


Alex