From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to have init-scripts 'wait' for other servers
Date: Fri, 4 Sep 2009 13:38:51 +0200 [thread overview]
Message-ID: <200909041338.51981.joost@antarean.org> (raw)
In-Reply-To: <4AA0EF91.2000601@gmx.net>
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
prev parent reply other threads:[~2009-09-04 6:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-04 8:51 [gentoo-user] How to have init-scripts 'wait' for other servers J. Roeleveld
2009-09-04 9:23 ` Willie Wong
2009-09-04 9:51 ` J. Roeleveld
2009-09-04 10:44 ` Carlos
2009-09-04 11:38 ` J. Roeleveld [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200909041338.51981.joost@antarean.org \
--to=joost@antarean.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox