From owner-freebsd-questions@FreeBSD.ORG Fri Oct 9 19:31:02 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B04B0106568D for ; Fri, 9 Oct 2009 19:31:02 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223]) by mx1.freebsd.org (Postfix) with ESMTP id 30FA38FC17 for ; Fri, 9 Oct 2009 19:31:01 +0000 (UTC) Received: by bwz23 with SMTP id 23so857112bwz.43 for ; Fri, 09 Oct 2009 12:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lkAtwkRZoTx6+akp7kbMbTVG7DoOILO+U/gAj0j/hog=; b=r9BmFiXv8kHL8VJnjlbsaNS9k4WbQ1+k7gOXA4eYMFZ2WZj/PpbiyiLa6sh5o1ZpNU 6UKqjnenVvctdKdc0vsuADVY0oIqXbxRZbL+cSRbS0GEKehBChiXkojHUy7NaxqTobto arHx/7Z//OkNNOChsa6WqOLL+hB1KqUOoM4Ug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=gkNhrXVJ/tgCDLZtq+htbCmCtMs9ISauhXZEUT9b3+7aq/drlbZJoVNPRbCbtrXfIc pC7B8+SoHUJjIQtmVyXJrfs4V9aMZc8PeknT6r5kz9MLh7D8jU3ZW+jtWDholh7qG+Tl F35jB/ApGUrf2o1mMhtVYZlAIHVOT9OgYlMe4= Received: by 10.103.85.28 with SMTP id n28mr1249375mul.66.1255116660866; Fri, 09 Oct 2009 12:31:00 -0700 (PDT) Received: from aryeh-desktop.istudentunion.com (ool-44c0cd7a.dyn.optonline.net [68.192.205.122]) by mx.google.com with ESMTPS id 14sm1232791muo.45.2009.10.09.12.30.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 09 Oct 2009 12:30:59 -0700 (PDT) Message-ID: <4ACF8F72.1010700@gmail.com> Date: Fri, 09 Oct 2009 15:30:58 -0400 From: "Aryeh M. Friedman" User-Agent: Thunderbird 2.0.0.23 (X11/20090915) MIME-Version: 1.0 To: Oliver Fromme References: <200910091909.n99J9rPe033892@lurza.secnetix.de> In-Reply-To: <200910091909.n99J9rPe033892@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Roland Smith , freebsd-questions@freebsd.org Subject: Re: How to set device permissions at startup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 19:31:02 -0000 Oliver Fromme wrote: > Aryeh M. Friedman wrote: > > Oliver Fromme wrote: > > > Roland Smith wrote: > > > > But one has to run '/etc/rc.d/devfs restart' for newly added rules to take > > > > effect! (or reboot the system, which is overkill). > > > > > > Yes, of course. I thought that was obvious. > > > > > > > Maybe I whould add that to the manual page for devfs.rules? > > > > > > Agreed, that might be an appropriate clarification. > > > > It should be included because not everyone uses the standard /etc/rc.* > > hierachy. For example I have a completely custom rc which before I did > > an other hack to make this issue not an issue read: > > Well, if you completely rewrite /etc/rc, then you're on > your own anyway, and you're supposed to know what you're > doing. In general it is not a good idea and will lead > to serious foot-shooting. > > By the way, what is the reason that you don't use the > standard rc(8) facilities? I don't see anything in you > custom script that wouldn't be covered by them. > > Mostly a matter of style... namely I personally like to know every last detail of how my machine boots (even having the hald and dbus onestarts is too much relience on "magic code" (code that works but is overly complex and hard to understand) but I was not able to deduce by reading their startup srcipts/man pages/ps -agx listings what args they needed so had to use the rc.d's)... in general it is a "bad thing" to have code that is not 100% user understandable (read not 100% author unreadable)... the metaphor I often give is it is like the difference between a modern computer controlled car and say a model T or VW bug (the first being so complex that only an expert can work on it and the second being simple enough that any mechincally inclined owner can work on it)... same thing with devfs (an other common example is ipfw and natd [those man pages are greate because if you read them close enough it tells you everything you need to know to set up a vpn router/firewall from scratch).... there are a number of cases where stuff is not fully documented for stuff like this in the base system and/or ports (sysutils/fusefs-ntfs is a classic example because it fails to state that you need to export the PATH with /usr/loca/sbin on it) Bottom line 99% of the "weird" aspects in my rc (calling rc.d's and such) are due to incomplete documentation