From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MjPhG-00037J-4A for garchives@archives.gentoo.org; Fri, 04 Sep 2009 03:42:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86E5AE08F0; Fri, 4 Sep 2009 08:51:17 +0000 (UTC) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by pigeon.gentoo.org (Postfix) with ESMTP id 46196E08F0 for ; Fri, 4 Sep 2009 08:51:17 +0000 (UTC) Received: from [212.54.42.144] (helo=smtp13.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MjUVo-0006m1-Bn for gentoo-user@lists.gentoo.org; Fri, 04 Sep 2009 10:51:16 +0200 Received: from 5353258a.cable.casema.nl ([83.83.37.138] helo=data.hosts.antarean.org) by smtp13.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1MjUVn-0002X1-MR for gentoo-user@lists.gentoo.org; Fri, 04 Sep 2009 10:51:15 +0200 Received: from localhost (localhost [127.0.0.1]) by data.hosts.antarean.org (Postfix) with ESMTP id 628A028E9D for ; Fri, 4 Sep 2009 10:51:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at antarean.org Received: from data.hosts.antarean.org ([127.0.0.1]) by localhost (data.hosts.antarean.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fTpivFzeAtRN for ; Fri, 4 Sep 2009 10:51:15 +0200 (CEST) Received: from eve.localnet (eve.hosts.antarean.org [10.1.5.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.hosts.antarean.org (Postfix) with ESMTPS id 3ED1923AC0 for ; Fri, 4 Sep 2009 10:51:15 +0200 (CEST) From: "J. Roeleveld" To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] How to have init-scripts 'wait' for other servers Date: Fri, 4 Sep 2009 10:51:14 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.27-gentoo-r7; KDE/4.2.4; x86_64; ; ) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909041051.14640.joost@antarean.org> X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1MjUVn-0002X1-MR X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=-2.522, vereist 5, autolearn=not spam, BAYES_00 -2.60, TW_QR 0.08) X-ZiggoSMTP-MailScanner-From: joost@antarean.org X-Spam-Status: No X-Archives-Salt: adfd8ef1-2ed9-43c2-8d0c-03df53dab8d0 X-Archives-Hash: 4982d768153aad4aee6def4bc79a2117 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