From owner-freebsd-rc@FreeBSD.ORG Fri Dec 30 10:19:11 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 719991065676; Fri, 30 Dec 2011 10:19:11 +0000 (UTC) (envelope-from mmakonnen@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 1CCBB8FC17; Fri, 30 Dec 2011 10:19:10 +0000 (UTC) Received: by yhfq46 with SMTP id q46so9835432yhf.13 for ; Fri, 30 Dec 2011 02:19:10 -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:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=c40+07zuq7KRWgRun6mT3AF8m+k7DDSxUk6BuVw85ek=; b=R8y+oMCd3DS/2GwqwN2hN7I5ULPfVYWA6krOwZqQjhkZAO4U7I6RVN4xGYwtdor6ED o7jF84ANiFbWOK5lZyzjd64qdXNZAu9BU6DqkYv3FBV9c6SShXs53dam3B06TQiTNC5L nykqaQdi7Gg7jIPw5GsNZzYNOrDQPeFqFYcN4= MIME-Version: 1.0 Received: by 10.236.195.71 with SMTP id o47mr879987yhn.56.1325238558410; Fri, 30 Dec 2011 01:49:18 -0800 (PST) Sender: mmakonnen@gmail.com Received: by 10.146.232.4 with HTTP; Fri, 30 Dec 2011 01:49:18 -0800 (PST) In-Reply-To: References: Date: Fri, 30 Dec 2011 12:49:18 +0300 X-Google-Sender-Auth: MGyulz1Duiw4n8VRIFO-oZErffE Message-ID: From: Mike Telahun Makonnen To: Eygene Ryabinkin Content-Type: text/plain; charset=ISO-8859-1 Cc: gordon@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Usage of the err() inside rc.d scripts 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: Fri, 30 Dec 2011 10:19:11 -0000 > > So, the question is: what is it good for and how people use it? > IIRC it's used in NetBSD as a fallback for very slow machines, on which forking a large number of processes, would delay start up too long. It exists in FreeBSD because at the time rc.d was introduced into FreeBSD we tried not to diverge from NetBSD too much. The idea was that a script from a NetBSD machine should be able to run on a FreeBSD machine and vice versa. However, that has been (mostly) abandoned now and over the past few years most of the NetBSD compatibility shims have been removed. I don't know if anyone uses this feature on FreeBSD (embedded systems maybe?). Cheers, Mike.