From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1395 Path: news.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.comp.sysutils.supervision.general Subject: svwaitup/check Date: Thu, 29 Mar 2007 09:36:45 +0100 (WEST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1175157418 1867 80.91.229.12 (29 Mar 2007 08:36:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 08:36:58 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1632-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Mar 29 10:36:54 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1HWq7p-0002pJ-Kv for gcsg-supervision@gmane.org; Thu, 29 Mar 2007 10:36:53 +0200 Original-Received: (qmail 10261 invoked by uid 76); 29 Mar 2007 08:37:13 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 10255 invoked from network); 29 Mar 2007 08:37:13 -0000 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1395 Archived-At: I'm trying to setup the network "service" with a run script like this: #!/bin/bash exec 2>&1 echo "*** Bringing up network..." # wait for ulogd... exec /etc/sysconfig/network-devices/ifup eth0 The system is LFS. The finish script will just "touch down". This means I'm considering the task of bringing up the network as a one-time initialization task, not a real service. But I want the network to start after ulogd is up, and the latter is a real service, hence this workaround to start network in stage2. (Comments/suggestions would be appreciated. I'm familiar with daemontools, but I'm just starting with runit.) Now, as for the "wait for ulogd" part, the hint I found is the use of svwaitup in http://smarden.org/pape/djb/daemontools/noinit.html. The "svwaitup" link is broken and I'm assuming that it belongs to an older release. I'm using the current developement one. I suppose it should be done with sv, using the check command. Something like this? sv -w 3 check ????? ulogd || exit 1 How to "request a state" of the ulogd service? This part of the man page is not clear to me. Moreover, if the ./check script exists then sv check will not report to STDOUT but will rather execute ./check. Is this correct? TIA, Jorge Almeida