From owner-freebsd-rc@FreeBSD.ORG Mon Mar 26 11:08:28 2007 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4DDD216A403 for ; Mon, 26 Mar 2007 11:08:28 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3BE9113C4C1 for ; Mon, 26 Mar 2007 11:08:28 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2QB8SCS049406 for ; Mon, 26 Mar 2007 11:08:28 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2QB8PSb049402 for freebsd-rc@FreeBSD.org; Mon, 26 Mar 2007 11:08:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 Mar 2007 11:08:25 GMT Message-Id: <200703261108.l2QB8PSb049402@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 26 Mar 2007 11:08:28 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/48881 rc [PATCH] The influence of /etc/start_ifname on /etc/rc. o conf/98758 rc [patch] Templatize 'jail_fstab' in /etc/rc.d/jail o conf/98846 rc [patch] Templatize 'jail_rootdir' in /etc/rc.d/jail o bin/104623 rc "rc.d/ppp restart" stops all instances of ppp o conf/105689 rc syslogd starts too late at boot o conf/107155 rc /etc/rc.d/ppp-user does not bring up pppoe at boot o conf/107316 rc [rc.d]: [base] [rpc.lockd] nfslocking restart does not o conf/107364 rc pf fails to start on bootup after system update from F o conf/108226 rc second copy of ppp started at boot time 9 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/45226 rc Fix for rc.network, ppp-user annoyance o conf/48870 rc [PATCH] rc.network: allow to cancel interface status d o conf/55916 rc [PATCH] ppp-user options o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/73677 rc [patch] add support for powernow states to power_profi o conf/74817 rc [patch] network.subr: fixed automatic configuration of o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/78906 rc [patch] Allow mixer_enable="NO" in rc.conf o conf/79196 rc [PATCH] configurable dummynet loading from /etc/rc.co o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/85363 rc syntax error in /etc/rc.d/devfs o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o conf/88913 rc [patch] wrapper support for rc.subr o conf/89061 rc [patch] IPv6 6to4 auto-configuration enhancement o conf/89870 rc [patch] feature request to make netif verbose rc.conf o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/95162 rc [patch] Missing feature in rc.subr o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/99595 rc [PATCH] /etc/rc.d/dhclient doesn't interact well with o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/102700 rc [PATCH] Add encrypted /tmp support to GELI/GBDE rc.d s o conf/102722 rc kerberos5 server startupscript should use --detach o conf/102913 rc /etc/rc.d/named killall in jailed OS o conf/103486 rc [rc.d][patch][chroot named] rc.d/jail: mount fstab aft o conf/103489 rc [rc.d] [patch] named_chroot_autoupdate doesn't work in o conf/103976 rc rc.d/named restart failure o conf/104408 rc command not set in rc.d/isdnd, can't stop isdnd with t o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/105145 rc [PATCH] add redial function to rc.d/ppp o conf/105568 rc [patch] Add more flexibility to rc.conf, to choose "_e o conf/106009 rc [patch] Fix pppoed startup script to process multiply o conf/106873 rc [patch] rc.d/nfslocking does not properly restart 34 problems total. From owner-freebsd-rc@FreeBSD.ORG Thu Mar 29 18:27:15 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 177AF16A408 for ; Thu, 29 Mar 2007 18:27:15 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (mx1.ethionet.et [213.55.64.53]) by mx1.freebsd.org (Postfix) with ESMTP id 7BADF13C45B for ; Thu, 29 Mar 2007 18:27:14 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (localhost [127.0.0.1]) by localhost.ethionet.et (Postfix) with ESMTP id 14B895000; Thu, 29 Mar 2007 21:23:32 +0300 (EAT) Received: from rogue.navcom.lan (unknown [213.55.64.98])by mx1.ethionet.et ( Postfix) with SMTP id C78454FE2;Thu, 29 Mar 2007 21:23:31 +0300 (EAT) Received: by rogue.navcom.lan (Postfix, from userid 1001)id 81D9A17024; Thu, 29 Mar 2007 21:29:06 +0300 (EAT) Date: Thu, 29 Mar 2007 21:29:06 +0300 From: Mike Makonnen To: freebsd-rc@freebsd.org Message-ID: <20070329182906.GB38703@rogue.navcom.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD/7.0-CURRENT (i386) X-imss-version: 2.46 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:4 C:3 M:3 S:4 R:3 (1.0000 1.0000) Cc: freebsd-net@freebsd.org Subject: Merging rc.d/network_ipv6 into rc.d/netif 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: Thu, 29 Mar 2007 18:27:15 -0000 Hello folks, Ever since rc.d was brought into the tree we all agreed IPv6 needed to be integrated better. Well, I've finally gotten arround to it... several years later :-P The patch is at: http://people.freebsd.org/~mtm/src-etc.ipv6.diff What it does ------------ - rc.d/network_ipv6 is no longer necessary and can be removed - IPv6 configuration is done on each interface in rc.d/netif along with IPv4 - IPv6 routing and options processing is done in rc.d/routing along with IPv4 - You can now do things like: # Start/Stop IPv6 on all interfaces /etc/rc.d/netif (start|stop) ip6 # Start/Stop IPv6 only on interface rl0 /etc/rc.d/netif (start|stop) rl0 ip6 # Do IPv6 options processing /etc/rc.d/routing options ip6 Overview of the changes in src/etc ----------------------------------- - In order to differentiate between v4 and v6 configuration directives some knobs in rc.conf(5)have been renamed with an ipv4_ prefix: network_interfaces ifconfig_DEFAULT ifconfig_ ifconfig__aliasX defaultrouter gateway_enable static_routes etc... - Modify all scripts that reference old knobs (without ipv4_ prefix) to reference the new version of the knobs - Compatibility shims in rc.subr(8) so that old uses of knobs without an ipv4_ prefix work as expected. As part of this change split the code for this processing into its own function: old2new_knobs() - Modify some routines in etc/network.subr to take an additional argument to specify v4 or v6 configuration: _ifconfig_get_args ifconfig_getargs autoif wpaif - Move some invocations of route(8) and v6 options processing into rc.d/routing I'm using the patches on my main work machine without any problems, so I think it's ready for a wider review. Please try it out and send me any comments, bug-reports, etc. I would especially like feedback from folks more familiar with IPv6. One gotcha I've noticed is that if you boot with ipv6_enable turned off, then try to start IPv6 on an interface later on, it doesn't work because none of the interfaces (except lo0) has a link-local address (see rc.d/auto_linklocal). How can we fix this? Also, I would appreciate feedback on how stopping IPv6 on an interface should be handled. In rc.d/network_ipv6 it was handled at all. Currently, it goes through and deletes all IPv6 addresses on the interface. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mmakonnen@gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm@FreeBSD.Org | FreeBSD - Unleash the Daemon ! From owner-freebsd-rc@FreeBSD.ORG Thu Mar 29 19:55:09 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17AC716A400; Thu, 29 Mar 2007 19:55:09 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.freebsd.org (Postfix) with ESMTP id E10D613C4B7; Thu, 29 Mar 2007 19:55:08 +0000 (UTC) (envelope-from bms@incunabulum.net) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 17FAD210F7C; Thu, 29 Mar 2007 15:32:37 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Thu, 29 Mar 2007 15:32:34 -0400 X-Sasl-enc: UJR41fubeW4EPjXzv65k9NawbDvS0UG5GYuijP4VdraI 1175196753 Received: from [192.168.124.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 2B3E221EE9; Thu, 29 Mar 2007 15:32:33 -0400 (EDT) Message-ID: <460C144E.5000002@incunabulum.net> Date: Thu, 29 Mar 2007 20:32:30 +0100 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: Mike Makonnen References: <20070329182906.GB38703@rogue.navcom.lan> In-Reply-To: <20070329182906.GB38703@rogue.navcom.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Merging rc.d/network_ipv6 into rc.d/netif 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: Thu, 29 Mar 2007 19:55:09 -0000 Mike Makonnen wrote: > I would > especially like feedback from folks more familiar with IPv6. One > gotcha I've noticed is that if you boot with ipv6_enable turned > off, then try to start IPv6 on an interface later on, it doesn't > work because none of the interfaces (except lo0) has a link-local > address (see rc.d/auto_linklocal). How can we fix this? Also, I > would appreciate feedback on how stopping IPv6 on an interface > should be handled. In rc.d/network_ipv6 it was handled at all. > Currently, it goes through and deletes all > IPv6 addresses on the interface. > I agree. We should be able to add/remove IPv6 link-local addresses somehow at runtime, after boot, without necessarily bringing up IPv6 on an interface during boot. I am thinking at some point it may be for the best if some of the code to do with address families is restructured so that the administrator is able to explicitly attach or detach protocol domains e.g. AF_INET, AF_INET6 to network interfaces on the command line, based on my experience of making the changes necessary for refcounting of various network stack structures. I'd like to get this fixed going forward, though, as ever, other work takes priority... Regards, BMS From owner-freebsd-rc@FreeBSD.ORG Thu Mar 29 21:27:22 2007 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E08A416A408; Thu, 29 Mar 2007 21:27:22 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 9E49A13C484; Thu, 29 Mar 2007 21:27:22 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 778B22085; Thu, 29 Mar 2007 23:04:25 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 680ED2084; Thu, 29 Mar 2007 23:04:25 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 3BC88A1075; Thu, 29 Mar 2007 23:04:25 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Mike Makonnen References: <20070329182906.GB38703@rogue.navcom.lan> Date: Thu, 29 Mar 2007 23:04:25 +0200 In-Reply-To: <20070329182906.GB38703@rogue.navcom.lan> (Mike Makonnen's message of "Thu, 29 Mar 2007 21:29:06 +0300") Message-ID: <86abxvoj6u.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Merging rc.d/network_ipv6 into rc.d/netif 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: Thu, 29 Mar 2007 21:27:23 -0000 Mike Makonnen writes: > - You can now do things like: > # Start/Stop IPv6 on all interfaces > /etc/rc.d/netif (start|stop) ip6 > # Start/Stop IPv6 only on interface rl0 > /etc/rc.d/netif (start|stop) rl0 ip6 I hope we never get an if_ip NIC driver :) DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-rc@FreeBSD.ORG Fri Mar 30 18:42:01 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 41AAD16A403; Fri, 30 Mar 2007 18:42:01 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 17DDC13C458; Fri, 30 Mar 2007 18:42:01 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (mtm@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2UIg0Jw034244; Fri, 30 Mar 2007 18:42:00 GMT (envelope-from mtm@freefall.freebsd.org) Received: (from mtm@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2UIg0YU034236; Fri, 30 Mar 2007 18:42:00 GMT (envelope-from mtm) Date: Fri, 30 Mar 2007 18:42:00 GMT From: Mike Makonnen Message-Id: <200703301842.l2UIg0YU034236@freefall.freebsd.org> To: freebsd-pr@cl.turing-complete.org, mtm@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/104408: command not set in rc.d/isdnd, can't stop isdnd with this rc script 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 Mar 2007 18:42:01 -0000 Synopsis: command not set in rc.d/isdnd, can't stop isdnd with this rc script State-Changed-From-To: open->closed State-Changed-By: mtm State-Changed-When: Fri Mar 30 18:39:22 UTC 2007 State-Changed-Why: Thanks! Committed to -CURRENT. MFC-After: 1 month http://www.freebsd.org/cgi/query-pr.cgi?pr=104408 From owner-freebsd-rc@FreeBSD.ORG Fri Mar 30 18:50:10 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 332DC16A401 for ; Fri, 30 Mar 2007 18:50:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DF30B13C458 for ; Fri, 30 Mar 2007 18:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2UIo9w7034380 for ; Fri, 30 Mar 2007 18:50:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2UIo90P034379; Fri, 30 Mar 2007 18:50:09 GMT (envelope-from gnats) Date: Fri, 30 Mar 2007 18:50:09 GMT Message-Id: <200703301850.l2UIo90P034379@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: conf/104408: commit references a PR X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service 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 Mar 2007 18:50:10 -0000 The following reply was made to PR conf/104408; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: conf/104408: commit references a PR Date: Fri, 30 Mar 2007 18:36:56 +0000 (UTC) mtm 2007-03-30 18:36:45 UTC FreeBSD src repository Modified files: etc/rc.d isdnd Log: Some rc.d commands (such as stop|restart etc.) won't automagically work if we don't explicitly set the name of the executable program. PR: conf/104408 Revision Changes Path 1.22 +1 -0 src/etc/rc.d/isdnd _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org" From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 10:30:09 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 16CF716A401 for ; Sat, 31 Mar 2007 10:30:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id BF4C413C469 for ; Sat, 31 Mar 2007 10:30:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VAU8YO005750 for ; Sat, 31 Mar 2007 10:30:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VAU86l005749; Sat, 31 Mar 2007 10:30:08 GMT (envelope-from gnats) Date: Sat, 31 Mar 2007 10:30:08 GMT Message-Id: <200703311030.l2VAU86l005749@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Mike Makonnen Cc: Subject: Re: conf/55916: [PATCH] ppp-user options X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Makonnen 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, 31 Mar 2007 10:30:09 -0000 The following reply was made to PR conf/55916; it has been noted by GNATS. From: Mike Makonnen To: bug-followup@FreeBSD.org, dcrudy@pacbell.net Cc: Subject: Re: conf/55916: [PATCH] ppp-user options Date: Sat, 31 Mar 2007 12:59:40 +0300 I'm not sure I understand. In rc.d there shouldn't be any need for you to include that piece of code. If you specify ppp_flags="....." in your /etc/rc.conf, the rc.subr(8) glue routines should "automagically" pick it up. Can you try an unmodified /etc/rc.d/ppp script and put your additional arguments in a ppp_flags variable in /etc/rc.conf, and report on the outcome please. Thanks. Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen_at_gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm_at_FreeBSD.Org | FreeBSD - http://www.freebsd.org From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 10:50:17 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3556016A402 for ; Sat, 31 Mar 2007 10:50:17 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 23CF813C45E for ; Sat, 31 Mar 2007 10:50:16 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VAoG2U007955 for ; Sat, 31 Mar 2007 10:50:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VAoGJM007954; Sat, 31 Mar 2007 10:50:16 GMT (envelope-from gnats) Date: Sat, 31 Mar 2007 10:50:16 GMT Message-Id: <200703311050.l2VAoGJM007954@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Mike Makonnen Cc: Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mike Makonnen 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, 31 Mar 2007 10:50:17 -0000 The following reply was made to PR bin/104623; it has been noted by GNATS. From: Mike Makonnen To: bug-followup@FreeBSD.org, freebsd-pr@cl.turing-complete.org Cc: Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp Date: Sat, 31 Mar 2007 13:49:59 +0300 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Can you try the attached patch? It allows you to specify the ppp instance to control by specifying the tunnel device name as an addtional argument: # /etc/rc.d/ppp restart tun0 Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen_at_gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm_at_FreeBSD.Org | FreeBSD - http://www.freebsd.org --IS0zKkzwUGydFO0o Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="ppp.diff" Index: etc/rc.d/ppp =================================================================== RCS file: /home/ncvs/src/etc/rc.d/ppp,v retrieving revision 1.13 diff -u -r1.13 ppp --- etc/rc.d/ppp 31 Mar 2007 09:03:38 -0000 1.13 +++ etc/rc.d/ppp 31 Mar 2007 09:25:27 -0000 @@ -2,6 +2,8 @@ # # $FreeBSD: src/etc/rc.d/ppp,v 1.13 2007/03/31 09:03:38 mtm Exp $ # +# usage: /etc/rc.d/ppp [tunX] +# # PROVIDE: ppp # REQUIRE: netif isdnd @@ -46,5 +48,13 @@ /etc/rc.d/pf resync } +# Allow the user to specify which ppp instance to control by +# specifing the tunnel device name on the command-line. +# +pppcmdline="$*" +if [ $# -gt 1 ]; then + pidfile="/var/run/$2.pid" +fi + load_rc_config $name -run_rc_command "$1" +run_rc_command ${pppcmdline} --IS0zKkzwUGydFO0o-- From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 12:20:12 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 616E416A468 for ; Sat, 31 Mar 2007 12:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4CABD13C45B for ; Sat, 31 Mar 2007 12:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VCKBvl012620 for ; Sat, 31 Mar 2007 12:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VCKBZN012619; Sat, 31 Mar 2007 12:20:11 GMT (envelope-from gnats) Date: Sat, 31 Mar 2007 12:20:11 GMT Message-Id: <200703311220.l2VCKBZN012619@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Nicolas Rachinsky Cc: Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nicolas Rachinsky 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, 31 Mar 2007 12:20:12 -0000 The following reply was made to PR bin/104623; it has been noted by GNATS. From: Nicolas Rachinsky To: Mike Makonnen Cc: bug-followup@FreeBSD.org Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp Date: Sat, 31 Mar 2007 13:49:00 +0200 * Mike Makonnen [2007-03-31 13:49 +0300]: > +# usage: /etc/rc.d/ppp [tunX] I haven't yet tried it, but I see one problem. AFAIK there is no mechanism to start more than one ppp with the current rc.d/ppp script via rc.conf. Thus I can't imagine how this can work if I do this with a tun device that does correspond to the ppp started via rc.d/ppp. And it will still terminate processes that are unrelated to the pp started via rc.d/ppp if it is used without the additional parameter. So I don't think, this can fix the real problem, that there is no way to identify the ppp instance that were started via rc.d/ppp. At least I see no such way. Do I miss something? Nicolas From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 12:21:32 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D8FE16A406; Sat, 31 Mar 2007 12:21:32 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 43D6113C4B9; Sat, 31 Mar 2007 12:21:32 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (mtm@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VCLW32012835; Sat, 31 Mar 2007 12:21:32 GMT (envelope-from mtm@freefall.freebsd.org) Received: (from mtm@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VCLVQf012831; Sat, 31 Mar 2007 12:21:31 GMT (envelope-from mtm) Date: Sat, 31 Mar 2007 12:21:31 GMT From: Mike Makonnen Message-Id: <200703311221.l2VCLVQf012831@freefall.freebsd.org> To: dol@ngcom.ru, mtm@FreeBSD.org, freebsd-rc@FreeBSD.org, mtm@FreeBSD.org Cc: Subject: Re: conf/108226: second copy of ppp started at boot time 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, 31 Mar 2007 12:21:32 -0000 Synopsis: second copy of ppp started at boot time State-Changed-From-To: open->feedback State-Changed-By: mtm State-Changed-When: Sat Mar 31 12:19:49 UTC 2007 State-Changed-Why: Need more info on the system. Responsible-Changed-From-To: freebsd-rc->mtm Responsible-Changed-By: mtm Responsible-Changed-When: Sat Mar 31 12:19:49 UTC 2007 Responsible-Changed-Why: I'm looking into this. http://www.freebsd.org/cgi/query-pr.cgi?pr=108226 From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 12:23:47 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2A7A16A402; Sat, 31 Mar 2007 12:23:47 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B8A5813C4AD; Sat, 31 Mar 2007 12:23:47 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (mtm@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VCNll1012912; Sat, 31 Mar 2007 12:23:47 GMT (envelope-from mtm@freefall.freebsd.org) Received: (from mtm@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VCNlac012908; Sat, 31 Mar 2007 12:23:47 GMT (envelope-from mtm) Date: Sat, 31 Mar 2007 12:23:47 GMT From: Mike Makonnen Message-Id: <200703311223.l2VCNlac012908@freefall.freebsd.org> To: freebsd-pr@cl.turing-complete.org, mtm@FreeBSD.org, freebsd-rc@FreeBSD.org, mtm@FreeBSD.org Cc: Subject: Re: bin/104623: "rc.d/ppp restart" stops all instances of ppp 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, 31 Mar 2007 12:23:48 -0000 Synopsis: "rc.d/ppp restart" stops all instances of ppp State-Changed-From-To: open->feedback State-Changed-By: mtm State-Changed-When: Sat Mar 31 12:22:01 UTC 2007 State-Changed-Why: I'll look into this. Patch has been worked up and awaiting response from Originator. Responsible-Changed-From-To: freebsd-rc->mtm Responsible-Changed-By: mtm Responsible-Changed-When: Sat Mar 31 12:22:01 UTC 2007 Responsible-Changed-Why: I'll look into this. Patch has been worked up and awaiting response from Originator. http://www.freebsd.org/cgi/query-pr.cgi?pr=104623 From owner-freebsd-rc@FreeBSD.ORG Sat Mar 31 12:27:08 2007 Return-Path: X-Original-To: freebsd-rc@hub.freebsd.org Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 437E216A401; Sat, 31 Mar 2007 12:27:08 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1A7D513C489; Sat, 31 Mar 2007 12:27:08 +0000 (UTC) (envelope-from mtm@FreeBSD.org) Received: from freefall.freebsd.org (mtm@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2VCR7d6012998; Sat, 31 Mar 2007 12:27:07 GMT (envelope-from mtm@freefall.freebsd.org) Received: (from mtm@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2VCR7RV012994; Sat, 31 Mar 2007 12:27:07 GMT (envelope-from mtm) Date: Sat, 31 Mar 2007 12:27:07 GMT From: Mike Makonnen Message-Id: <200703311227.l2VCR7RV012994@freefall.freebsd.org> To: dcrudy@pacbell.net, mtm@FreeBSD.org, freebsd-rc@FreeBSD.org, mtm@FreeBSD.org Cc: Subject: Re: conf/55916: [PATCH] ppp-user options 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, 31 Mar 2007 12:27:08 -0000 Synopsis: [PATCH] ppp-user options State-Changed-From-To: open->feedback State-Changed-By: mtm State-Changed-When: Sat Mar 31 12:26:23 UTC 2007 State-Changed-Why: I'll look into this. Awaiting feedback from Originator. Responsible-Changed-From-To: freebsd-rc->mtm Responsible-Changed-By: mtm Responsible-Changed-When: Sat Mar 31 12:26:23 UTC 2007 Responsible-Changed-Why: I'll look into this. Awaiting feedback from Originator. http://www.freebsd.org/cgi/query-pr.cgi?pr=55916