From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/990 Path: news.gmane.org!not-for-mail From: "Wayne Marshall" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: invoking ipsvd-cdb Date: 20 Jan 2006 09:03:05 -0800 Organization: guinix international Message-ID: <20060120090305.4d956887@alloy.copperisle.com> References: <20060116222229.GA1074@sta.duo> <20060119101516.34c15c05@alloy.copperisle.com> <20060120054827.GD13229@sta.duo> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1137776304 13762 80.91.229.2 (20 Jan 2006 16:58:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2006 16:58:24 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1226-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Jan 20 17:58:22 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1Ezza7-0005JJ-PJ for gcsg-supervision@gmane.org; Fri, 20 Jan 2006 17:57:47 +0100 Original-Received: (qmail 2245 invoked by uid 76); 20 Jan 2006 16:58:04 -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 2239 invoked from network); 20 Jan 2006 16:58:03 -0000 Original-To: "George Georgalis" In-Reply-To: <20060120054827.GD13229@sta.duo> X-Mailer: Sylpheed-Claws 1.9.15 (GTK+ 2.6.10; i686-pc-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:990 Archived-At: On Fri, 20 Jan 2006 00:48:28 -0500 "George Georgalis" wrote: > > >Many of these have default "iprules" instructions set up in an > >iprules sub-directory within the service directory. The run script > >conventions used for these services make sure the rules are > >recompiled each time the service is restarted. > > I try to avoid "helpers" like that. it's when the ip > rules change that a new cdb should be generated... > > # > cat /var/service/qmail-smtpd/peers.sh #!/bin/sh > cd `dirname $0` && ipsvd-cdb peers.cdb peers.tmp peers > > that way whenever you've changed anything under ./peers > you've nearly typed the command to update the cdb too. > The other way, people are liable to restart services > whenever they change a ip rule. > Yes, the slackmatic runit packages all follow similar conventions and all use the same simple "iprules-make" utility included with the slackmatic ipsvd package. This utility can be run in the service directory to update the cdb anytime without restarting the service. Wayne