From owner-freebsd-rc@FreeBSD.ORG Sat Jan 28 03:02:20 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDA8C1065670 for ; Sat, 28 Jan 2012 03:02:20 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 73B1A8FC13 for ; Sat, 28 Jan 2012 03:02:20 +0000 (UTC) Received: by yhfs35 with SMTP id s35so1214931yhf.13 for ; Fri, 27 Jan 2012 19:02:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; bh=P9A+59RN73H4KmJFBDge9+sy18fc3XBRT8ee7u498Ik=; b=poQ9+/2Yd10jx1PRcgFupBUW8emcpBHL8xtO6dln87Y22Ln44ERZpkHJ3ECEOQ+nyh Bib2nA3AARIjsMS1u+Tf/F9CYkhU82Z9E+nEpdYrrww1Yafzy1djinXXNsKTWBiK8aT5 LiDrT0IeU9ztov5mvyzDpJ5L98vINsBg/JCT4= Received: by 10.236.182.66 with SMTP id n42mr14619987yhm.85.1327719739868; Fri, 27 Jan 2012 19:02:19 -0800 (PST) Received: from DataIX.net (adsl-99-19-42-1.dsl.klmzmi.sbcglobal.net. [99.19.42.1]) by mx.google.com with ESMTPS id q5sm17493186yhm.7.2012.01.27.19.02.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jan 2012 19:02:17 -0800 (PST) Sender: Jason Hellenthal Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.5/8.14.5) with ESMTP id q0S32EK4003298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Jan 2012 22:02:14 -0500 (EST) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.5/8.14.5/Submit) id q0S329Pk003217; Fri, 27 Jan 2012 22:02:09 -0500 (EST) (envelope-from jhell@DataIX.net) Date: Fri, 27 Jan 2012 22:02:09 -0500 From: Jason Hellenthal To: Garrett Cooper Message-ID: <20120128030209.GA37756@DataIX.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: "freebsd-rc@FreeBSD.org" Subject: Re: Multiple rc scripts with the same PROVIDEs? X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2012 03:02:20 -0000 On Fri, Jan 27, 2012 at 05:06:34PM -0800, Garrett Cooper wrote: > Hi RC folks, > Quick question -- is there a reason why multiple scripts PROVIDE > the same rc services? Is there a potential drawback to doing this (in > particular if there are dependency loops in the scripts)? > Thanks! > -Garrett > > $ grep -r PROVIDE: /etc/rc.d/ | grep disks > /etc/rc.d/gbde:# PROVIDE: disks > /etc/rc.d/encswap:# PROVIDE: disks > /etc/rc.d/geli:# PROVIDE: disks > /etc/rc.d/ccd:# PROVIDE: disks This is just a way to differentiate when in the starting and stopping of services that they will be called and provide a way for scripts to determine if all proper dependencies are being met whether it be virtually or physically. This is similiar to ... /etc/rc.d/othermta:# PROVIDE: mail /etc/rc.d/sendmail:# PROVIDE: mail And most of the time has more to do with rcorder(1) I would think that it should also be providing ${name} of the script as well. # PROVIDE: disks gbde -- ;s =;