On Friday 04 September 2009 12:44:33 Carlos wrote:
> J. Roeleveld a écrit :
> > Hi all,
> >
> > Does anyone know if an existing method to have init-scripts on server A
> > wait for a service on server B to be started?
> >
> > Reason for this:
> > I have one server containing all the databases, one that operates as a
> > NAS and the DNS is running on server 3.
> > In order for the different machines to start correctly, I need to
> > configure it that server 3 starts the DNS before the other machines try
> > to access other machines (don't want to maintain hosts-files as it all
> > works fine once the servers are up and running)
> >
> > Also need to make sure the database and NAS is running before the
> > webserver starts.
> >
> > I tried to google for it, but I can't find a usefull search string that
> > will give me anything usefull.
> >
> > I don't mind reqriting init-scripts for this, but am looking for a way to
> > check if services are up and running from within the init-scripts.
> >
> > Thanks,
> >
> > Joost Roeleveld
>
> Monit may be able to meet your needs and reduce the amount of work you'd
> have to do to script this up yourself.
>
> http://mmonit.com/monit/
>
> An advantage of not touching the init scripts is that you don't have to
> maintain patches or deal with merge prompts when a package updates it's
> init script.
>
> Regards,
> Carlos

I will have a look at this. From the website it looks like it should be able 
to do most of what I need.
Might need to reconfigure a few things (like not starting all services using 
the 'normal' method, but I can live with that as long as monit can still tell 
me what is running and what isn't...

(added bonus, it's in portage: app-admin/monit )

Thanks,

Joost


Reply via email to