From owner-freebsd-rc@FreeBSD.ORG Sun Jan 22 00:12:29 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 11209106566B; Sun, 22 Jan 2012 00:12:29 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7C6EC8FC0C; Sun, 22 Jan 2012 00:12:28 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q0LNbvHH087641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 22 Jan 2012 01:37:57 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q0LNbvwK008279; Sun, 22 Jan 2012 01:37:57 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q0LNbvnu008278; Sun, 22 Jan 2012 01:37:57 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 22 Jan 2012 01:37:57 +0200 From: Kostik Belousov To: "Simon L. B. Nielsen" Message-ID: <20120121233757.GB31224@deviant.kiev.zoral.com.ua> References: <4F14F4FF.902@erdgeist.org> <20120120230300.GE87357@lor.one-eyed-alien.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XHgFapH+pGmRGlpQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Bumping a pet bug 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, 22 Jan 2012 00:12:29 -0000 --XHgFapH+pGmRGlpQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 21, 2012 at 11:43:06PM +0100, Simon L. B. Nielsen wrote: > I think in most cases if devfs mount fails you will likely not end up=20 > with a jail where you can do much... rather many things expect /dev/null= =20 > etc. >=20 > It is possible to just disable the devfs mount completely for a jail if= =20 > you want the jail to start up anyway without devfs so I think it would=20 > be OK to simply skip the jail if we cannot mount devfs - and complain=20 > loudly. >=20 > Anybody have any cases where this would be a problem? Just curious. Why devfs mounts can fail ? --XHgFapH+pGmRGlpQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk8bTFUACgkQC3+MBN1Mb4jXygCg4H+XU/s+Caq2FL9thNBbpmZd jBEAoIBhE2+LKAqn7646Y/EtvV310phX =Y7/U -----END PGP SIGNATURE----- --XHgFapH+pGmRGlpQ-- From owner-freebsd-rc@FreeBSD.ORG Sun Jan 22 00:33:41 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 E22F71065672; Sun, 22 Jan 2012 00:33:41 +0000 (UTC) (envelope-from simon@nitro.dk) Received: from emx.nitro.dk (emx.nitro.dk [IPv6:2a01:4f8:120:7384::102]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAA48FC08; Sun, 22 Jan 2012 00:33:41 +0000 (UTC) Received: from mailscan.leto.nitro.dk (mailscan.leto.nitro.dk [127.0.1.4]) by emx.nitro.dk (Postfix) with ESMTP id 065271B1FAE; Sun, 22 Jan 2012 00:33:41 +0000 (UTC) Received: from emx.nitro.dk ([127.0.1.2]) by mailscan.leto.nitro.dk (mailscan.leto.nitro.dk [127.0.1.4]) (amavisd-new, port 10024) with LMTP id RmrSsqcNQgxX; Sun, 22 Jan 2012 00:33:38 +0000 (UTC) Received: from webmail.nitro.dk (webmail.nitro.dk [127.0.1.8]) by emx.nitro.dk (Postfix) with ESMTP id BB19A1B1FA7; Sun, 22 Jan 2012 00:33:38 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 22 Jan 2012 01:33:38 +0100 From: simon To: Kostik Belousov In-Reply-To: <20120121233757.GB31224@deviant.kiev.zoral.com.ua> References: <4F14F4FF.902@erdgeist.org> <20120120230300.GE87357@lor.one-eyed-alien.net> <20120121233757.GB31224@deviant.kiev.zoral.com.ua> Message-ID: X-Sender: simon@nitro.dk User-Agent: Roundcube Webmail/42.7 Cc: Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Bumping a pet bug 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, 22 Jan 2012 00:33:42 -0000 On Sun, 22 Jan 2012 01:37:57 +0200, Kostik Belousov wrote: > On Sat, Jan 21, 2012 at 11:43:06PM +0100, Simon L. B. Nielsen wrote: >> I think in most cases if devfs mount fails you will likely not end >> up >> with a jail where you can do much... rather many things expect >> /dev/null >> etc. >> >> It is possible to just disable the devfs mount completely for a jail >> if >> you want the jail to start up anyway without devfs so I think it >> would >> be OK to simply skip the jail if we cannot mount devfs - and >> complain >> loudly. >> >> Anybody have any cases where this would be a problem? > Just curious. Why devfs mounts can fail ? If $JAIL/dev doesn't exist or if one has messed up the devfs rulset configuration are two reasons I can think of. -- Simon From owner-freebsd-rc@FreeBSD.ORG Sun Jan 22 13:46:55 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 2751A106564A for ; Sun, 22 Jan 2012 13:46:55 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [217.13.206.130]) by mx1.freebsd.org (Postfix) with ESMTP id 5EA898FC13 for ; Sun, 22 Jan 2012 13:46:53 +0000 (UTC) Received: (qmail 4395 invoked from network); 22 Jan 2012 13:48:54 -0000 Received: from elektropost.org (HELO elektropost.org) (erdgeist@erdgeist.org) by elektropost.org with AES256-SHA encrypted SMTP; 22 Jan 2012 13:48:54 -0000 Date: Sun, 22 Jan 2012 14:46:51 +0100 (CET) From: Dirk Engling To: simon In-Reply-To: Message-ID: References: <4F14F4FF.902@erdgeist.org> <20120120230300.GE87357@lor.one-eyed-alien.net> <20120121233757.GB31224@deviant.kiev.zoral.com.ua> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Bumping a pet bug 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, 22 Jan 2012 13:46:55 -0000 On Sun, 22 Jan 2012, simon wrote: >> Just curious. Why devfs mounts can fail ? > > If $JAIL/dev doesn't exist or if one has messed up the devfs rulset > configuration are two reasons I can think of. I guess that when you forget sudo, this is where you end up. The script just does not know when to quit. Other scenarios include situations where the jails mountpoint is for some reasons unavailable. Here is the output I get from not running the jail script as root: Starting jails:mount_nullfs: Operation not permitted devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted mount: dev : Operation not permitted /etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs on /usr/jails/foo.com/dev /etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not mounted on /usr/jails/foo.com/dev ln: log: Permission denied mount: /usr/jails/foo.com/dev/fd: No such file or directory mount: proc : Operation not permitted cannot start jail "foo_com": Regards, erdgeist From owner-freebsd-rc@FreeBSD.ORG Sun Jan 22 20:46:12 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 300071065674; Sun, 22 Jan 2012 20:46:12 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id D9F938FC14; Sun, 22 Jan 2012 20:46:11 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so3549022obc.13 for ; Sun, 22 Jan 2012 12:46:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=dmr4Oe7+GNA6jvrpgXkavOB5XptNczrPexiByNV2UEw=; b=XAjWG31CgRuem/QWBPs2OG+tSsr/LLwb4mANS5pZsZobuglnqqWCMHpQ6KcY5F2MfN aK6kRYIb9q63qZ5sf2Iv8NZjdgGT8lirbsZqwSQq1k1AtAwwVt6eowWqRglOGC4+XoXW S7+B/mp4Z3xgvN6zlIvXW4F/XKyBqDJr1x1O0= MIME-Version: 1.0 Received: by 10.182.48.36 with SMTP id i4mr5678855obn.9.1327265171065; Sun, 22 Jan 2012 12:46:11 -0800 (PST) Received: by 10.182.5.162 with HTTP; Sun, 22 Jan 2012 12:46:10 -0800 (PST) In-Reply-To: References: <4F14F4FF.902@erdgeist.org> <20120120230300.GE87357@lor.one-eyed-alien.net> <20120121233757.GB31224@deviant.kiev.zoral.com.ua> Date: Sun, 22 Jan 2012 12:46:10 -0800 Message-ID: From: Garrett Cooper To: Dirk Engling Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: simon , Brooks Davis , freebsd-rc@freebsd.org Subject: Re: Bumping a pet bug 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, 22 Jan 2012 20:46:12 -0000 On Sun, Jan 22, 2012 at 5:46 AM, Dirk Engling wrote= : > > On Sun, 22 Jan 2012, simon wrote: > >>> Just curious. Why devfs mounts can fail ? >> >> >> If $JAIL/dev doesn't exist or if one has messed up the devfs rulset >> configuration are two reasons I can think of. > > > I guess that when you forget sudo, this is where you end up. The script j= ust > does not know when to quit. Other scenarios include situations where the > jails mountpoint is for some reasons unavailable. > > Here is the output I get from not running the jail script as root: > > Starting jails:mount_nullfs: Operation not permitted > devfs rule: ioctl DEVFSIO_RGETNEXT: Operation not permitted > mount: dev : Operation not permitted > /etc/rc.d/jail: WARNING: devfs_domount(): Unable to mount devfs on > /usr/jails/foo.com/dev > /etc/rc.d/jail: WARNING: devfs_mount_jail: devfs was not mounted on > /usr/jails/foo.com/dev > ln: log: Permission denied > mount: /usr/jails/foo.com/dev/fd: No such file or directory > mount: proc : Operation not permitted > =A0cannot start jail "foo_com": Probably a simple case of lack of set -e in the script with appropriate error catching logic. The jailme and portsjail [*] scripts had similar issues. Thanks, -Garrett [*] I submitted a patch to make portsjail set -e aware: http://trac.pcbsd.org/ticket/487 From owner-freebsd-rc@FreeBSD.ORG Mon Jan 23 04:46:57 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29F5A106566B; Mon, 23 Jan 2012 04:46:57 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F0C768FC13; Mon, 23 Jan 2012 04:46:56 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0N4kuK6098454; Mon, 23 Jan 2012 04:46:56 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0N4kuIU098450; Mon, 23 Jan 2012 04:46:56 GMT (envelope-from hrs) Date: Mon, 23 Jan 2012 04:46:56 GMT Message-Id: <201201230446.q0N4kuIU098450@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-rc@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Cc: Subject: Re: conf/132476: [rc.d] [patch] add support setfib(1) in rc.d/routing 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: Mon, 23 Jan 2012 04:46:57 -0000 Synopsis: [rc.d] [patch] add support setfib(1) in rc.d/routing Responsible-Changed-From-To: freebsd-rc->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Mon Jan 23 04:46:28 UTC 2012 Responsible-Changed-Why: I'll take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=132476 From owner-freebsd-rc@FreeBSD.ORG Mon Jan 23 04:47:18 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 808A7106564A; Mon, 23 Jan 2012 04:47:18 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 52EB98FC15; Mon, 23 Jan 2012 04:47:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0N4lIb0098546; Mon, 23 Jan 2012 04:47:18 GMT (envelope-from hrs@freefall.freebsd.org) Received: (from hrs@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0N4lIkZ098542; Mon, 23 Jan 2012 04:47:18 GMT (envelope-from hrs) Date: Mon, 23 Jan 2012 04:47:18 GMT Message-Id: <201201230447.q0N4lIkZ098542@freefall.freebsd.org> To: hrs@FreeBSD.org, freebsd-rc@FreeBSD.org, hrs@FreeBSD.org From: hrs@FreeBSD.org Cc: Subject: Re: conf/145440: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing 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: Mon, 23 Jan 2012 04:47:18 -0000 Synopsis: [rc.d] [patch] add multiple fib support (setfib) in /etc/rc.d/routing Responsible-Changed-From-To: freebsd-rc->hrs Responsible-Changed-By: hrs Responsible-Changed-When: Mon Jan 23 04:47:04 UTC 2012 Responsible-Changed-Why: I'll take this. http://www.freebsd.org/cgi/query-pr.cgi?pr=145440 From owner-freebsd-rc@FreeBSD.ORG Mon Jan 23 05:44:55 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01CE61065670; Mon, 23 Jan 2012 05:44:55 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C807A8FC08; Mon, 23 Jan 2012 05:44:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0N5isk6052835; Mon, 23 Jan 2012 05:44:54 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0N5iseg052831; Mon, 23 Jan 2012 05:44:54 GMT (envelope-from linimon) Date: Mon, 23 Jan 2012 05:44:54 GMT Message-Id: <201201230544.q0N5iseg052831@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/164393: [rc.d] restarting netif with static addresses doesn't restart routing; makes machine unreachable 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: Mon, 23 Jan 2012 05:44:55 -0000 Synopsis: [rc.d] restarting netif with static addresses doesn't restart routing; makes machine unreachable Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Mon Jan 23 05:44:41 UTC 2012 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=164393 From owner-freebsd-rc@FreeBSD.ORG Mon Jan 23 11:07:12 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 317AD106566C for ; Mon, 23 Jan 2012 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 14CF68FC0A for ; Mon, 23 Jan 2012 11:07:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0NB7Bx9081063 for ; Mon, 23 Jan 2012 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0NB7BPa081061 for freebsd-rc@FreeBSD.org; Mon, 23 Jan 2012 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 23 Jan 2012 11:07:11 GMT Message-Id: <201201231107.q0NB7BPa081061@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org 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: Mon, 23 Jan 2012 11:07:12 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/164393 rc [rc.d] restarting netif with static addresses doesn't o conf/163508 rc [rc.subr] [patch] Add "enable" and "disable" commands o conf/163488 rc Confusing explanation in defaults/rc.conf o conf/163321 rc [rc.conf] [patch] allow _fib syntax in rc.conf o conf/162642 rc .sh scripts in /usr/local/etc/rc.d get executed, not s o conf/161107 rc [rc] stop_boot in mountcritlocal usage is incorrect. o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/109272 rc [request] increase default rc shutdown timeout o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 92 problems total. From owner-freebsd-rc@FreeBSD.ORG Sat Jan 28 01:06:35 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 DE670106564A for ; Sat, 28 Jan 2012 01:06:35 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id AF0968FC0C for ; Sat, 28 Jan 2012 01:06:35 +0000 (UTC) Received: by obcwo16 with SMTP id wo16so3515690obc.13 for ; Fri, 27 Jan 2012 17:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=EJN04tjjMbeYjk2w21amlfq3UZ6D68SYd7hJK6KoN08=; b=bx7sAUflBm5bIeBfqDNPrJyvJuSFdWbs7KW0fF7bnRn5CShs2BICQ1YThP0ji/Cug1 22+FqkhSPMz7bP3uzrwbyQUzkbizgFUtv2qbjRlVVaEqYEIz9F9gPcv9GcmjL64x8DQQ sw80qMRyoFsTvKxK9g17lGpXfH9XIn5qpv+3w= MIME-Version: 1.0 Received: by 10.182.49.1 with SMTP id q1mr8603985obn.48.1327712795023; Fri, 27 Jan 2012 17:06:35 -0800 (PST) Received: by 10.182.46.163 with HTTP; Fri, 27 Jan 2012 17:06:34 -0800 (PST) Date: Fri, 27 Jan 2012 17:06:34 -0800 Message-ID: From: Garrett Cooper To: "freebsd-rc@FreeBSD.org" Content-Type: text/plain; charset=ISO-8859-1 Subject: 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 01:06:35 -0000 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 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 =;