[gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
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



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread Willie Wong
On Fri, Sep 04, 2009 at 10:51:14AM +0200, Penguin Lover J. Roeleveld squawked:
 Does anyone know if an existing method to have init-scripts on server A wait 
 for a service on server B to be started?

I have no idea if this would work or not. But have you tried writing a
init script that does nothing but polls for the service and only
exits when succeeds? Then you can edit the scripts for the dependent
services to require it to start after your polling script. 

Something like: script /etc/init.d/foo polls tries for database
connection. Inside it is a time-delayed loop that tries until it
succeeds. Edit /etc/init.d/apache (assuming you are using it for your
webserver) to 'need foo'

Again, I am just throwing this out randomly. Let me know if it works
at all ;p

Best of luck, 

W
-- 
Two college graduates are peeing in a bathroom. 

The Harvard grad finishes, goes over and washes his hands very well using 
lots of soap and water, and says at Harvard, they teach us to be clean.

The Yale grad finishes, and washes his hands with a very small amount
of soap and water and says at Yale they teach us to conserve resources.

Right then, a Princeton grad walks in, washes his hands thoroughly,
and goes to the urinal, saying At Princeton, they teach us to wash
our hands before handling a sacred object.
Sortir en Pantoufles: up 1001 days,  8:06



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
On Friday 04 September 2009 11:23:09 Willie Wong wrote:
 On Fri, Sep 04, 2009 at 10:51:14AM +0200, Penguin Lover J. Roeleveld 
squawked:
  Does anyone know if an existing method to have init-scripts on server A
  wait for a service on server B to be started?

 I have no idea if this would work or not. But have you tried writing a
 init script that does nothing but polls for the service and only
 exits when succeeds? Then you can edit the scripts for the dependent
 services to require it to start after your polling script.

I have been thinking of something similar, but before starting to write this 
myself, I wanted to double check if anyone has a better idea and/or already 
knows of a set of scripts/tools that already implement this.

 Something like: script /etc/init.d/foo polls tries for database
 connection. Inside it is a time-delayed loop that tries until it
 succeeds. Edit /etc/init.d/apache (assuming you are using it for your
 webserver) to 'need foo'

Or, obviously, fails if it doesn't come up within a certain (configurable) 
time.

 Again, I am just throwing this out randomly. Let me know if it works
 at all ;p

If there is no existing set of scripts, I will share whatever I come up with.

 Best of luck,

Thanks,

Joost



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread Carlos

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



Re: [gentoo-user] How to have init-scripts 'wait' for other servers

2009-09-04 Thread J. Roeleveld
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




Re: [gentoo-user] how to have this

2006-05-20 Thread Johám-Luís Miguéns Vila
On 02:42 Sat 20 May , Rakotomandimby Mihamina wrote:
 Hi,
 
 http://gensid.altervista.org/screenshot/fvwm15.png
 
 I would like to use fvwm and have these features.
 My hardware is an AMD Sempron 3000+ 32bits, an ATI Xpress 200M
 I really would like to install all needed thing through portage, even
 the ATI drivers. Would you have some links you would recommend. I
 already tried google, but may be have you some unindexed resources...
 
 Thanks in advance.
 
 -- 
 A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source  GPL).
 Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
 http://www.cps-project.org for downloads  documentation.
 
 -- 
 gentoo-user@gentoo.org mailing list
 

That's  great fvwm  in alliance with xcompmgr + transset...

That's just a config highly based on great gulivert's OSX-Milky[1].

You can give a look at other configs at official fvwm forums[2].

cheers.


[1] http://www.clan-hash.com/gulivert/?cat=3
[2] http://fvwm.lair.be/viewforum.php?f=39

-- 
A ouvir (mpd): Amália Rodrigues - Não é Desgraça Ser Pobre
 - GPG KeyID:0x9D2FD6C8


pgpNnjxc1UMUz.pgp
Description: PGP signature


[gentoo-user] how to have this

2006-05-19 Thread Rakotomandimby Mihamina
Hi,

http://gensid.altervista.org/screenshot/fvwm15.png

I would like to use fvwm and have these features.
My hardware is an AMD Sempron 3000+ 32bits, an ATI Xpress 200M
I really would like to install all needed thing through portage, even
the ATI drivers. Would you have some links you would recommend. I
already tried google, but may be have you some unindexed resources...

Thanks in advance.

-- 
A powerfull GroupWare, CMS, CRM, ECM: CPS (Open Source  GPL).
Opengroupware, SPIP, Plone, PhpBB, JetSpeed... are good: CPS is better.
http://www.cps-project.org for downloads  documentation.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] how to have this

2006-05-19 Thread Ryan Tandy

Rakotomandimby Mihamina wrote:

Hi,

http://gensid.altervista.org/screenshot/fvwm15.png


Looks very suspiciously like XGl - if that's what it is, then there's a 
thread in the Forums somewhere (under Desktop Environments).


HTH

Ryan
--
gentoo-user@gentoo.org mailing list



[gentoo-user] How to have default fedora font in gentoo ?

2006-03-06 Thread Massimiliano Bellomo
Hi,
i'm searching the fedora/redhat default terminal font (maybe Luxi
Mono ?)
to use in my Gentoo Box.
I've tried Luxi Mono following X11-font HOWTO but it doesn't look very well.

Any idea ?

Thanks,
Max.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] How to have default fedora font in gentoo ?

2006-03-06 Thread Mrugesh Karnik
On Monday 06 March 2006 22:28, Massimiliano Bellomo wrote:
 Hi,
 i'm searching the fedora/redhat default terminal font (maybe Luxi
 Mono ?)
 to use in my Gentoo Box.
 I've tried Luxi Mono following X11-font HOWTO but it doesn't look very
 well.

If you're talking about the font used on the virtual consoles, it's 
LatArCyrHeb-16

I don't know about the fonts used in Gnome-terminal.

Mrugesh
-- 
gentoo-user@gentoo.org mailing list