From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1397 Path: news.gmane.org!not-for-mail From: Jorge Almeida Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: svwaitup/check Date: Thu, 29 Mar 2007 15:29:41 +0100 (WEST) Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1175178602 14249 80.91.229.12 (29 Mar 2007 14:30:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2007 14:30:02 +0000 (UTC) Cc: Jorge Almeida , supervision@list.skarnet.org To: Charlie Brady Original-X-From: supervision-return-1634-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Mar 29 16:29:46 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 1HWvdI-0003F2-CK for gcsg-supervision@gmane.org; Thu, 29 Mar 2007 16:29:44 +0200 Original-Received: (qmail 26182 invoked by uid 76); 29 Mar 2007 14:30:05 -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 26150 invoked from network); 29 Mar 2007 14:30:05 -0000 In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1397 Archived-At: On Thu, 29 Mar 2007, Charlie Brady wrote: > > On Thu, 29 Mar 2007, Jorge Almeida wrote: > >> 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". > > That won't do what you think it will do. runsv only looks for the down file > when it first starts up. Perhaps you want "sv down ." in the finish script. > > Thank you, it's an important point, and easy to fix! As for the other part of my post (sv check...), I think the "requested state" is the state the service (ulogd) is supposed to be in (as in "want up", etc), and it's not something to include in the sv command. Can someone confirm this? -- Jorge Almeida