From owner-freebsd-rc@FreeBSD.ORG Sun Dec 25 09:22:28 2011 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 758DE1065670 for ; Sun, 25 Dec 2011 09:22:28 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 05DE38FC0A for ; Sun, 25 Dec 2011 09:22:27 +0000 (UTC) Received: by iadj38 with SMTP id j38so20424256iad.13 for ; Sun, 25 Dec 2011 01:22:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=B2EwLsqFTPBfBvDkr5OsoF86vo0TS4mxh1EU0ld08+Q=; b=THN1YDkZWUWPFO86dtugryXakEDsOypN9Y/X0LIW1AWbciqxj16qE9bD7per2d/Nbh 0iMFxBA36PgdTn96XJu8I5F0a+a5GHqNmKmm+ly6W5hhQalBG8pT2SOgzIVYtpLC+9jd 2CUQqOd2hIO63STcNkP1msxLZyiLCT4kTYHFA= Received: by 10.50.100.164 with SMTP id ez4mr1609091igb.12.1324804947289; Sun, 25 Dec 2011 01:22:27 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.30.70 with HTTP; Sun, 25 Dec 2011 01:21:56 -0800 (PST) In-Reply-To: <201112250720.pBP7KCjL015178@freefall.freebsd.org> References: <201112250720.pBP7KCjL015178@freefall.freebsd.org> From: Chris Rees Date: Sun, 25 Dec 2011 09:21:56 +0000 X-Google-Sender-Auth: chNtYIXzDm2JpBrJGB2Z9MaTK7Q Message-ID: To: Maxim Ignatenko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-rc@freebsd.org Subject: Re: conf/163508: [rc.subr] [patch] Add "enable" and "disable" commands to rc.subr 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: Sun, 25 Dec 2011 09:22:28 -0000 On 25 December 2011 07:20, Maxim Ignatenko wrote: > The following reply was made to PR conf/163508; it has been noted by GNAT= S. > > From: Maxim Ignatenko > To: Doug Barton > Cc: bug-followup@freebsd.org > Subject: Re: conf/163508: [rc.subr] [patch] Add "enable" and > =A0"disable" commands to rc.subr > Date: Sun, 25 Dec 2011 09:15:44 +0200 > > =A0On 24 December 2011 22:59, Doug Barton wrote: > =A0> On 12/24/2011 04:20, Maxim Ignatenko wrote: > =A0>> The idea was to make enabling/disabling services less error-prone. > =A0> > =A0> How is adding foo_enable=3D1 to rc.conf error-prone? > =A0> > > =A0Typo like fooo_enbale=3D1, or one missed '>' in echo foo_enable=3D1 > = /etc/rc.conf Let's think about this in a historical way... We (the BSDs) with our rcng have a massive advantage over the horrors of configuring a SysV init system; has anyone recently tried to change the 'runlevel' of a service on Debian without using rc-update? It involves putting numbered symlinks into each rcX.d We don't have this problem, it's as simple as adding a line to /etc/rc.conf(:?local)?. Yes, other systems have rc-update and cool magic like that, but our system is SO much simpler that these just aren't necessary. It's not a case of being error-prone; BSD: # echo 'foo_enable=3D"YES"' >>/etc/rc.conf SysV: # for runlevel in 1 2 3 4 5 ; do ln -s /etc/init.d/foo /etc/rc${runlevel}.d/S22foo ; done Chris