From owner-freebsd-rc@FreeBSD.ORG Mon Nov 13 11:08:35 2006 Return-Path: X-Original-To: freebsd-rc@FreeBSD.org Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B790D16A686 for ; Mon, 13 Nov 2006 11:08:35 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8006943D4C for ; Mon, 13 Nov 2006 11:08:35 +0000 (GMT) (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 kADB8Zll091566 for ; Mon, 13 Nov 2006 11:08:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kADB8YsG091562 for freebsd-rc@FreeBSD.org; Mon, 13 Nov 2006 11:08:34 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 13 Nov 2006 11:08:34 GMT Message-Id: <200611131108.kADB8YsG091562@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, 13 Nov 2006 11:08:35 -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/98734 rc [patch] /etc/rc.subr restart_postcmd is failing start_ 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 5 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/96766 rc run_rc_command doesn't work for Python scripts 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 bin/100287 rc /etc/rc.subr cannot deal properly with interpreted dae 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] rc.d/jail: mount fstab after devfs 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/104884 rc [patch] Add support EtherChannel configuration to rc.c o conf/105145 rc [PATCH] add redial function to rc.d/ppp 34 problems total. From owner-freebsd-rc@FreeBSD.ORG Tue Nov 14 18:00:23 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC4E916A568 for ; Tue, 14 Nov 2006 18:00:23 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A7D543D76 for ; Tue, 14 Nov 2006 18:00:19 +0000 (GMT) (envelope-from bounces@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gk2a2-0007z7-SI for freebsd-rc@freebsd.org; Tue, 14 Nov 2006 10:00:18 -0800 Message-ID: <7342892.post@talk.nabble.com> Date: Tue, 14 Nov 2006 10:00:18 -0800 (PST) From: subba To: freebsd-rc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: subba@t8design.com Subject: How to read ifconfig in FreeBSD..Help plss 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: Tue, 14 Nov 2006 18:00:24 -0000 Hi, I have to write console menu set up, where user can change the IP , netmask,gateway settings etc. To Start with i need to read 'ifconfig' and get the 'ip' and 'netmask' and store it in a file and read the file to get the output. Can somebody help me in reading the IP and others from ifconfig... I am trying to use char *cmd[] = { "ifconfig","-a",(char *)0 } execv("/sbin/ifconfig,cmd); If there is a better solution to have the console set up, I would love to know it...I'd appreciate your help. Thanks, Subba -- View this message in context: http://www.nabble.com/How-to-read-ifconfig-in-FreeBSD..Help-plss-tf2631184.html#a7342892 Sent from the freebsd-rc mailing list archive at Nabble.com. From owner-freebsd-rc@FreeBSD.ORG Tue Nov 14 18:12:22 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 039D016A407 for ; Tue, 14 Nov 2006 18:12:22 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87BE843D45 for ; Tue, 14 Nov 2006 18:12:21 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20061114181220m9200kmfnoe>; Tue, 14 Nov 2006 18:12:20 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kAEICAUK051701; Tue, 14 Nov 2006 12:12:11 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kAEIC5Uh051700; Tue, 14 Nov 2006 12:12:05 -0600 (CST) (envelope-from brooks) Date: Tue, 14 Nov 2006 12:12:04 -0600 From: Brooks Davis To: subba Message-ID: <20061114181204.GA51226@lor.one-eyed-alien.net> References: <7342892.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="r5Pyd7+fXNt84Ff3" Content-Disposition: inline In-Reply-To: <7342892.post@talk.nabble.com> User-Agent: Mutt/1.5.11 Cc: freebsd-rc@freebsd.org Subject: Re: How to read ifconfig in FreeBSD..Help plss 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: Tue, 14 Nov 2006 18:12:22 -0000 --r5Pyd7+fXNt84Ff3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 14, 2006 at 10:00:18AM -0800, subba wrote: >=20 > Hi, >=20 > I have to write console menu set up, where user can change the IP , > netmask,gateway settings etc. > To Start with i need to read 'ifconfig' and get the 'ip' and 'netmask' and > store it in a file and read the file to get the output. Can somebody help= me > in reading the IP and others from ifconfig... > I am trying to use > char *cmd[] =3D { "ifconfig","-a",(char *)0 } > execv("/sbin/ifconfig,cmd); >=20 > If there is a better solution to have the console set up, I would love to > know it...I'd appreciate your help. The better solution by far would be to read the source and copy the parts you need into your application rather than trying to parse ifconfig output in C. -- Brooks --r5Pyd7+fXNt84Ff3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFWgb0XY6L6fI4GtQRAh26AJ9xsdWcYHM0O/3+DzNVJdO49Yi7swCfSRtY SdHeIJ11XJmvByIDlUpC4KE= =Ar5B -----END PGP SIGNATURE----- --r5Pyd7+fXNt84Ff3-- From owner-freebsd-rc@FreeBSD.ORG Tue Nov 14 19:36:17 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DDA916A49E for ; Tue, 14 Nov 2006 19:36:17 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D07DD43D5C for ; Tue, 14 Nov 2006 19:36:12 +0000 (GMT) (envelope-from bounces@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gk44q-0003BB-KY for freebsd-rc@freebsd.org; Tue, 14 Nov 2006 11:36:12 -0800 Message-ID: <7344729.post@talk.nabble.com> Date: Tue, 14 Nov 2006 11:36:12 -0800 (PST) From: subba To: freebsd-rc@freebsd.org In-Reply-To: <20061114181204.GA51226@lor.one-eyed-alien.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: subba@t8design.com References: <7342892.post@talk.nabble.com> <20061114181204.GA51226@lor.one-eyed-alien.net> Subject: Re: How to read ifconfig in FreeBSD..Help plss 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: Tue, 14 Nov 2006 19:36:17 -0000 Thanks Brooks, I am not sure about 'to read the source and copy the parts into your application'. Can you please elaborate?. When you said reading the source, does it mean that pipe the 'ifconfig' to a file and read that file ... like % ifconfig > somefile.txt and read somefile.txt and get the ip, netmask and others.? If this is the case, how can i pipe(C program) when the user logs in...i.e when the user logs in, console menu should be displayed with current IP,netmask etc. I am not sure if i am in the right direction. I'd appreciate your help. Thanks, Subba Brooks Davis wrote: > > On Tue, Nov 14, 2006 at 10:00:18AM -0800, subba wrote: >> >> Hi, >> >> I have to write console menu set up, where user can change the IP , >> netmask,gateway settings etc. >> To Start with i need to read 'ifconfig' and get the 'ip' and 'netmask' >> and >> store it in a file and read the file to get the output. Can somebody help >> me >> in reading the IP and others from ifconfig... >> I am trying to use >> char *cmd[] = { "ifconfig","-a",(char *)0 } >> execv("/sbin/ifconfig,cmd); >> >> If there is a better solution to have the console set up, I would love to >> know it...I'd appreciate your help. > > The better solution by far would be to read the source and copy the > parts you need into your application rather than trying to parse > ifconfig output in C. > > -- Brooks > > > -- View this message in context: http://www.nabble.com/How-to-read-ifconfig-in-FreeBSD..Help-plss-tf2631184.html#a7344729 Sent from the freebsd-rc mailing list archive at Nabble.com. From owner-freebsd-rc@FreeBSD.ORG Tue Nov 14 20:44:25 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D85A916A4EB for ; Tue, 14 Nov 2006 20:44:25 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc91.asp.att.net (sccmmhc91.asp.att.net [204.127.203.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C19E43E28 for ; Tue, 14 Nov 2006 20:38:20 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc91.asp.att.net (sccmmhc91) with ESMTP id <20061114203443m9100el8mje>; Tue, 14 Nov 2006 20:34:44 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kAEK5qko053034; Tue, 14 Nov 2006 14:06:23 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kAEK5L22053030; Tue, 14 Nov 2006 14:05:21 -0600 (CST) (envelope-from brooks) Date: Tue, 14 Nov 2006 14:05:06 -0600 From: Brooks Davis To: subba Message-ID: <20061114200506.GB51226@lor.one-eyed-alien.net> References: <7342892.post@talk.nabble.com> <20061114181204.GA51226@lor.one-eyed-alien.net> <7344729.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="A6N2fC+uXW/VQSAv" Content-Disposition: inline In-Reply-To: <7344729.post@talk.nabble.com> User-Agent: Mutt/1.5.11 Cc: freebsd-rc@freebsd.org Subject: Re: How to read ifconfig in FreeBSD..Help plss 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: Tue, 14 Nov 2006 20:44:26 -0000 --A6N2fC+uXW/VQSAv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please don't top-post on FreeBSD mailing lists.] On Tue, Nov 14, 2006 at 11:36:12AM -0800, subba wrote: >=20 >=20 > Thanks Brooks, >=20 > I am not sure about 'to read the source and copy the parts into your > application'. Can you please elaborate?. When you said reading the source, > does it mean that pipe the 'ifconfig' to a file and read that file ... li= ke > % ifconfig > somefile.txt > and read somefile.txt and get the ip, netmask and others.? > If this is the case, how can i pipe(C program) when the user logs in...i.e > when the user logs in, console menu should be displayed with current > IP,netmask etc. I am not sure if i am in the right direction. I'd appreci= ate > your help. Since you are writing a C program, just do what ifconfig does rather than trying to parse it's output. I.e. copy what you need from src/sbin/ifconfig/*.c (retaining appropriate license and copyright statements). -- Brooks >=20 > Thanks, > Subba >=20 >=20 > Brooks Davis wrote: > >=20 > > On Tue, Nov 14, 2006 at 10:00:18AM -0800, subba wrote: > >>=20 > >> Hi, > >>=20 > >> I have to write console menu set up, where user can change the IP , > >> netmask,gateway settings etc. > >> To Start with i need to read 'ifconfig' and get the 'ip' and 'netmask' > >> and > >> store it in a file and read the file to get the output. Can somebody h= elp > >> me > >> in reading the IP and others from ifconfig... > >> I am trying to use > >> char *cmd[] =3D { "ifconfig","-a",(char *)0 } > >> execv("/sbin/ifconfig,cmd); > >>=20 > >> If there is a better solution to have the console set up, I would love= to > >> know it...I'd appreciate your help. > >=20 > > The better solution by far would be to read the source and copy the > > parts you need into your application rather than trying to parse > > ifconfig output in C. > >=20 > > -- Brooks > >=20 > > =20 > >=20 >=20 > --=20 > View this message in context: http://www.nabble.com/How-to-read-ifconfig-= in-FreeBSD..Help-plss-tf2631184.html#a7344729 > Sent from the freebsd-rc mailing list archive at Nabble.com. >=20 > _______________________________________________ > freebsd-rc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-rc > To unsubscribe, send any mail to "freebsd-rc-unsubscribe@freebsd.org" >=20 --A6N2fC+uXW/VQSAv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFWiFxXY6L6fI4GtQRAnPRAJ0TIKtjgbBDsqoFH9aVAmzbxDDi1wCg1V8A D8rml0aIKlXyHP9VUN9xQh8= =crc2 -----END PGP SIGNATURE----- --A6N2fC+uXW/VQSAv-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 17:02:29 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37AD116A494; Wed, 15 Nov 2006 17:02:29 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B772B43D58; Wed, 15 Nov 2006 17:02:27 +0000 (GMT) (envelope-from linimon@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 kAFH2RSP019599; Wed, 15 Nov 2006 17:02:27 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFH2Rm2019595; Wed, 15 Nov 2006 17:02:27 GMT (envelope-from linimon) Date: Wed, 15 Nov 2006 17:02:27 GMT From: Mark Linimon Message-Id: <200611151702.kAFH2Rm2019595@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup 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: Wed, 15 Nov 2006 17:02:29 -0000 Synopsis: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Wed Nov 15 17:02:20 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=105568 From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 17:06:07 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86B0216A412; Wed, 15 Nov 2006 17:06:07 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8699943D77; Wed, 15 Nov 2006 17:05:58 +0000 (GMT) (envelope-from linimon@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 kAFH5w5i019846; Wed, 15 Nov 2006 17:05:58 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFH5wSe019842; Wed, 15 Nov 2006 17:05:58 GMT (envelope-from linimon) Date: Wed, 15 Nov 2006 17:05:58 GMT From: Mark Linimon Message-Id: <200611151705.kAFH5wSe019842@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org Cc: Subject: Re: conf/105570: [patch] to allow tun(4) in rc.conf 'cloned_interfaces' 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: Wed, 15 Nov 2006 17:06:07 -0000 Synopsis: [patch] to allow tun(4) in rc.conf 'cloned_interfaces' Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Wed Nov 15 17:05:52 UTC 2006 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=105570 From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 19:32:15 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AA2C16A57E for ; Wed, 15 Nov 2006 19:32:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F25EE43D5E for ; Wed, 15 Nov 2006 19:30:39 +0000 (GMT) (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 kAFJUBBv033937 for ; Wed, 15 Nov 2006 19:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFJUBZl033932; Wed, 15 Nov 2006 19:30:11 GMT (envelope-from gnats) Date: Wed, 15 Nov 2006 19:30:11 GMT Message-Id: <200611151930.kAFJUBZl033932@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: "Pietro Cerutti" Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pietro Cerutti 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: Wed, 15 Nov 2006 19:32:15 -0000 The following reply was made to PR conf/105568; it has been noted by GNATS. From: "Pietro Cerutti" To: bug-followup@FreeBSD.org, pietro.cerutti@gmail.com Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Date: Wed, 15 Nov 2006 20:21:29 +0100 ------=_Part_83855_8042419.1163618489179 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline This new patch allows to: - specify a default response set DAEMON_ask_default="[yes|no]" in rc.conf - specify a timeout after which the default response will be taken as good set DAEMON_ask_timeout="{0-9}[s|m|h]" in rc.conf Default values have been set in rc.subr ASK_TIMEOUT="5s" ASK_DEFAULT="YES" -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ------=_Part_83855_8042419.1163618489179 Content-Type: application/octet-stream; name=rc.subr.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_euk4dzcf Content-Disposition: attachment; filename="rc.subr.diff" LS0tIC9ldGMvcmMuc3Vici5vcmlnCVdlZCBOb3YgMTUgMTQ6MDM6NTkgMjAwNgorKysgL2V0Yy9y Yy5zdWJyCVdlZCBOb3YgMTUgMjA6MTA6MzIgMjAwNgpAQCAtNTYsNiArNTYsOCBAQAogSUQ9Ii91 c3IvYmluL2lkIgogSklEPWBwcyAtcCAkJCAtbyBqaWQ9YAogSURDTUQ9ImlmIFsgLXggJElEIF07 IHRoZW4gJElEIC11bjsgZmkiCitBU0tfVElNRU9VVD0iNXMiCitBU0tfREVGQVVMVD0iWUVTIgog CiBjYXNlICR7T1NUWVBFfSBpbgogRnJlZUJTRCkKQEAgLTEyMiw3ICsxMjQsOCBAQAogCiAjCiAj IGNoZWNreWVzbm8gdmFyCi0jCVRlc3QgJDEgdmFyaWFibGUsIGFuZCB3YXJuIGlmIG5vdCBzZXQg dG8gWUVTIG9yIE5PLgorIwlUZXN0ICQxIHZhcmlhYmxlLCBhbmQgd2FybiBpZiBub3Qgc2V0IHRv IFlFUywgTk8gb3IgQVNLLgorIwlJZiBpdCdzICJhc2siLCBsZXQgdGhlIHVzZXIgY2hvb3NlIGF0 IHJ1bnRpbWUgYmV0d2VlbiAieWVzIiBhbmQgIm5vIi4KICMJUmV0dXJuIDAgaWYgaXQncyAieWVz IiAoZXQgYWwpLCBub256ZXJvIG90aGVyd2lzZS4KICMKIGNoZWNreWVzbm8oKQpAQCAtMTQwLDcg KzE0Myw1MiBAQAogCVtObl1bT29dfFtGZl1bQWFdW0xsXVtTc11bRWVdfFtPb11bRmZdW0ZmXXww KQogCQlyZXR1cm4gMQogCQk7OwotCSopCisKKyAgICAgICMgImFzayIKKwlbQWFdW1NzXVtLa10p CisgICAgICAKKyAgICAgICMgYW5zd2VyIGFscmVhZHkgc3RvcmVkIGluIC5hc2sgZmlsZSwKKyAg ICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc2h1dGRvd24KKyAgICAgIF9maWxlPSIv dmFyL3J1bi8kbmFtZS5hc2siCisgICAgICBpZiBbIC1mICRfZmlsZSBdOyB0aGVuCisgICAgICAg ICByZWFkIF9yZXNwb25zZSA8ICRfZmlsZQorICAgICAgICAgaWYgY2hlY2t5ZXNubyBfcmVzcG9u c2U7IHRoZW4KKyAgICAgICAgICAgIHJldHVybiAwCisgICAgICAgICBlbHNlCisgICAgICAgICAg ICByZXR1cm4gMQorICAgICAgICAgZmkKKyAgICAgIGZpCisgICAgICAjIHByb21wdCBhbmQgc2F2 ZSBjaG9pY2UgdG8gZmlsZSwKKyAgICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc3Rh cnR1cAorCisgICAgICAjIFJlYWQgdGltZW91dCBhbmQgZGVmYXVsdCBhbnN3ZXIgZm9yIGRhZW1v bgorICAgICAgZXZhbCBfdGltZW91dD1cJCR7bmFtZX1fYXNrX3RpbWVvdXQKKyAgICAgIGV2YWwg X3Jlc3BvbnNlPVwkJHtuYW1lfV9hc2tfZGVmYXVsdAorCisgICAgICBpZiBbICEgJF90aW1lb3V0 IF07IHRoZW4KKyAgICAgICAgIF90aW1lb3V0PSRBU0tfVElNRU9VVAorICAgICAgZmkKKworICAg ICAgaWYgWyAhICRfcmVzcG9uc2UgXTsgdGhlbgorICAgICAgICAgX3Jlc3BvbnNlPSRBU0tfREVG QVVMVAorICAgICAgZmkKKworICAgICAgcmVhZCAtdCAkX3RpbWVvdXQgLXAgIlJDX0FTSyAtIEVu YWJsZSAkbmFtZT8gW3llc3xub10gIiBfZW5hYmxlCisgICAgICBpZiBbICQ/IC1lcSAxIF07IHRo ZW4KKyAgICAgICAgIF9lbmFibGU9JHtfcmVzcG9uc2V9CisgICAgICBmaQorICAgICAgaWYgY2hl Y2t5ZXNubyBfZW5hYmxlOyB0aGVuCisgICAgICAgICBfY2hvaWNlPSJ5ZXMiCisgICAgICAgICBf cmV0dXJuPTAKKyAgICAgIGVsc2UKKyAgICAgICAgIF9jaG9pY2U9Im5vIgorICAgICAgICAgX3Jl dHVybj0xCisgICAgICBmaQorICAgICAgZWNobyAiJF9jaG9pY2UiID4gJF9maWxlCisgICAgICBy ZXR1cm4gICRfcmV0dXJuOworICAgICAgOzsKKworICAgKikKIAkJd2FybiAiXCQkezF9IGlzIG5v dCBzZXQgcHJvcGVybHkgLSBzZWUgJHtyY3Zhcl9tYW5wYWdlfS4iCiAJCXJldHVybiAxCiAJCTs7 Cg== ------=_Part_83855_8042419.1163618489179-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 19:44:06 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8CE716A4EA for ; Wed, 15 Nov 2006 19:44:06 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08DC043D79 for ; Wed, 15 Nov 2006 19:43:47 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so226662uge for ; Wed, 15 Nov 2006 11:43:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QjBRoLAt5YfowSPiWLYxjt8nJqLwD/nbz9XrFPfcC9OToxTWMnpib5sydFJW/cmTkiK1rC7Khxi0CR8niR0Mcvt48MlfkOdBwOgh9RZNQba6FYf7URMZs0hPYejJMHqpmG8BTu+bhJ8nQYVkPporYVKLQD5whJBxE/DiOvw9i+I= Received: by 10.67.19.17 with SMTP id w17mr2252445ugi.1163619821164; Wed, 15 Nov 2006 11:43:41 -0800 (PST) Received: by 10.66.224.6 with HTTP; Wed, 15 Nov 2006 11:43:41 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 20:43:41 +0100 From: "Pietro Cerutti" To: freebsd-rc@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_84339_9911130.1163619821112" Subject: PR 105568 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: Wed, 15 Nov 2006 19:44:07 -0000 ------=_Part_84339_9911130.1163619821112 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello list, I submitted a follow-up to [my own] PR 105568, here's the patch. It sets a timeout of 5s and default answer of yes in rc.subr. After the timeout has elapsed, the default answer will be taken as good, if the user hasn't already chosen. Furthermore, it allows setting per-daemon timeouts and default answers, with DAEMON_ask_timeout={0-9}[s|m|h] DAEMON_ask_default=[yes|no] Ideas, feedback, .... welcome! Please CC me since I'm not on the list Reagards -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ------=_Part_84339_9911130.1163619821112 Content-Type: application/octet-stream; name=rc.subr.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_euk53a3o Content-Disposition: attachment; filename="rc.subr.diff" LS0tIC9ldGMvcmMuc3Vici5vcmlnCVdlZCBOb3YgMTUgMTQ6MDM6NTkgMjAwNgorKysgL2V0Yy9y Yy5zdWJyCVdlZCBOb3YgMTUgMjA6MTA6MzIgMjAwNgpAQCAtNTYsNiArNTYsOCBAQAogSUQ9Ii91 c3IvYmluL2lkIgogSklEPWBwcyAtcCAkJCAtbyBqaWQ9YAogSURDTUQ9ImlmIFsgLXggJElEIF07 IHRoZW4gJElEIC11bjsgZmkiCitBU0tfVElNRU9VVD0iNXMiCitBU0tfREVGQVVMVD0iWUVTIgog CiBjYXNlICR7T1NUWVBFfSBpbgogRnJlZUJTRCkKQEAgLTEyMiw3ICsxMjQsOCBAQAogCiAjCiAj IGNoZWNreWVzbm8gdmFyCi0jCVRlc3QgJDEgdmFyaWFibGUsIGFuZCB3YXJuIGlmIG5vdCBzZXQg dG8gWUVTIG9yIE5PLgorIwlUZXN0ICQxIHZhcmlhYmxlLCBhbmQgd2FybiBpZiBub3Qgc2V0IHRv IFlFUywgTk8gb3IgQVNLLgorIwlJZiBpdCdzICJhc2siLCBsZXQgdGhlIHVzZXIgY2hvb3NlIGF0 IHJ1bnRpbWUgYmV0d2VlbiAieWVzIiBhbmQgIm5vIi4KICMJUmV0dXJuIDAgaWYgaXQncyAieWVz IiAoZXQgYWwpLCBub256ZXJvIG90aGVyd2lzZS4KICMKIGNoZWNreWVzbm8oKQpAQCAtMTQwLDcg KzE0Myw1MiBAQAogCVtObl1bT29dfFtGZl1bQWFdW0xsXVtTc11bRWVdfFtPb11bRmZdW0ZmXXww KQogCQlyZXR1cm4gMQogCQk7OwotCSopCisKKyAgICAgICMgImFzayIKKwlbQWFdW1NzXVtLa10p CisgICAgICAKKyAgICAgICMgYW5zd2VyIGFscmVhZHkgc3RvcmVkIGluIC5hc2sgZmlsZSwKKyAg ICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc2h1dGRvd24KKyAgICAgIF9maWxlPSIv dmFyL3J1bi8kbmFtZS5hc2siCisgICAgICBpZiBbIC1mICRfZmlsZSBdOyB0aGVuCisgICAgICAg ICByZWFkIF9yZXNwb25zZSA8ICRfZmlsZQorICAgICAgICAgaWYgY2hlY2t5ZXNubyBfcmVzcG9u c2U7IHRoZW4KKyAgICAgICAgICAgIHJldHVybiAwCisgICAgICAgICBlbHNlCisgICAgICAgICAg ICByZXR1cm4gMQorICAgICAgICAgZmkKKyAgICAgIGZpCisgICAgICAjIHByb21wdCBhbmQgc2F2 ZSBjaG9pY2UgdG8gZmlsZSwKKyAgICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc3Rh cnR1cAorCisgICAgICAjIFJlYWQgdGltZW91dCBhbmQgZGVmYXVsdCBhbnN3ZXIgZm9yIGRhZW1v bgorICAgICAgZXZhbCBfdGltZW91dD1cJCR7bmFtZX1fYXNrX3RpbWVvdXQKKyAgICAgIGV2YWwg X3Jlc3BvbnNlPVwkJHtuYW1lfV9hc2tfZGVmYXVsdAorCisgICAgICBpZiBbICEgJF90aW1lb3V0 IF07IHRoZW4KKyAgICAgICAgIF90aW1lb3V0PSRBU0tfVElNRU9VVAorICAgICAgZmkKKworICAg ICAgaWYgWyAhICRfcmVzcG9uc2UgXTsgdGhlbgorICAgICAgICAgX3Jlc3BvbnNlPSRBU0tfREVG QVVMVAorICAgICAgZmkKKworICAgICAgcmVhZCAtdCAkX3RpbWVvdXQgLXAgIlJDX0FTSyAtIEVu YWJsZSAkbmFtZT8gW3llc3xub10gIiBfZW5hYmxlCisgICAgICBpZiBbICQ/IC1lcSAxIF07IHRo ZW4KKyAgICAgICAgIF9lbmFibGU9JHtfcmVzcG9uc2V9CisgICAgICBmaQorICAgICAgaWYgY2hl Y2t5ZXNubyBfZW5hYmxlOyB0aGVuCisgICAgICAgICBfY2hvaWNlPSJ5ZXMiCisgICAgICAgICBf cmV0dXJuPTAKKyAgICAgIGVsc2UKKyAgICAgICAgIF9jaG9pY2U9Im5vIgorICAgICAgICAgX3Jl dHVybj0xCisgICAgICBmaQorICAgICAgZWNobyAiJF9jaG9pY2UiID4gJF9maWxlCisgICAgICBy ZXR1cm4gICRfcmV0dXJuOworICAgICAgOzsKKworICAgKikKIAkJd2FybiAiXCQkezF9IGlzIG5v dCBzZXQgcHJvcGVybHkgLSBzZWUgJHtyY3Zhcl9tYW5wYWdlfS4iCiAJCXJldHVybiAxCiAJCTs7 Cg== ------=_Part_84339_9911130.1163619821112-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 19:50:22 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D822B16A403 for ; Wed, 15 Nov 2006 19:50:22 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EC1543D49 for ; Wed, 15 Nov 2006 19:50:22 +0000 (GMT) (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 kAFJoMf6037037 for ; Wed, 15 Nov 2006 19:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFJoM1h037036; Wed, 15 Nov 2006 19:50:22 GMT (envelope-from gnats) Date: Wed, 15 Nov 2006 19:50:22 GMT Message-Id: <200611151950.kAFJoM1h037036@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: "Pietro Cerutti" Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pietro Cerutti 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: Wed, 15 Nov 2006 19:50:23 -0000 The following reply was made to PR conf/105568; it has been noted by GNATS. From: "Pietro Cerutti" To: bug-followup@freebsd.org Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Date: Wed, 15 Nov 2006 20:45:34 +0100 ------=_Part_84371_3004703.1163619934329 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Trying to get the attachment encoded as txt.... -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org ------=_Part_84371_3004703.1163619934329 Content-Type: text/plain; name="rc.subr.diff.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rc.subr.diff.txt" X-Attachment-Id: f_euk592yf LS0tIC9ldGMvcmMuc3Vici5vcmlnCVdlZCBOb3YgMTUgMTQ6MDM6NTkgMjAwNgorKysgL2V0Yy9y Yy5zdWJyCVdlZCBOb3YgMTUgMjA6MTA6MzIgMjAwNgpAQCAtNTYsNiArNTYsOCBAQAogSUQ9Ii91 c3IvYmluL2lkIgogSklEPWBwcyAtcCAkJCAtbyBqaWQ9YAogSURDTUQ9ImlmIFsgLXggJElEIF07 IHRoZW4gJElEIC11bjsgZmkiCitBU0tfVElNRU9VVD0iNXMiCitBU0tfREVGQVVMVD0iWUVTIgog CiBjYXNlICR7T1NUWVBFfSBpbgogRnJlZUJTRCkKQEAgLTEyMiw3ICsxMjQsOCBAQAogCiAjCiAj IGNoZWNreWVzbm8gdmFyCi0jCVRlc3QgJDEgdmFyaWFibGUsIGFuZCB3YXJuIGlmIG5vdCBzZXQg dG8gWUVTIG9yIE5PLgorIwlUZXN0ICQxIHZhcmlhYmxlLCBhbmQgd2FybiBpZiBub3Qgc2V0IHRv IFlFUywgTk8gb3IgQVNLLgorIwlJZiBpdCdzICJhc2siLCBsZXQgdGhlIHVzZXIgY2hvb3NlIGF0 IHJ1bnRpbWUgYmV0d2VlbiAieWVzIiBhbmQgIm5vIi4KICMJUmV0dXJuIDAgaWYgaXQncyAieWVz IiAoZXQgYWwpLCBub256ZXJvIG90aGVyd2lzZS4KICMKIGNoZWNreWVzbm8oKQpAQCAtMTQwLDcg KzE0Myw1MiBAQAogCVtObl1bT29dfFtGZl1bQWFdW0xsXVtTc11bRWVdfFtPb11bRmZdW0ZmXXww KQogCQlyZXR1cm4gMQogCQk7OwotCSopCisKKyAgICAgICMgImFzayIKKwlbQWFdW1NzXVtLa10p CisgICAgICAKKyAgICAgICMgYW5zd2VyIGFscmVhZHkgc3RvcmVkIGluIC5hc2sgZmlsZSwKKyAg ICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc2h1dGRvd24KKyAgICAgIF9maWxlPSIv dmFyL3J1bi8kbmFtZS5hc2siCisgICAgICBpZiBbIC1mICRfZmlsZSBdOyB0aGVuCisgICAgICAg ICByZWFkIF9yZXNwb25zZSA8ICRfZmlsZQorICAgICAgICAgaWYgY2hlY2t5ZXNubyBfcmVzcG9u c2U7IHRoZW4KKyAgICAgICAgICAgIHJldHVybiAwCisgICAgICAgICBlbHNlCisgICAgICAgICAg ICByZXR1cm4gMQorICAgICAgICAgZmkKKyAgICAgIGZpCisgICAgICAjIHByb21wdCBhbmQgc2F2 ZSBjaG9pY2UgdG8gZmlsZSwKKyAgICAgICMgdGhpcyBzaG91bGQgYmUgdGhlIGNhc2Ugb24gc3Rh cnR1cAorCisgICAgICAjIFJlYWQgdGltZW91dCBhbmQgZGVmYXVsdCBhbnN3ZXIgZm9yIGRhZW1v bgorICAgICAgZXZhbCBfdGltZW91dD1cJCR7bmFtZX1fYXNrX3RpbWVvdXQKKyAgICAgIGV2YWwg X3Jlc3BvbnNlPVwkJHtuYW1lfV9hc2tfZGVmYXVsdAorCisgICAgICBpZiBbICEgJF90aW1lb3V0 IF07IHRoZW4KKyAgICAgICAgIF90aW1lb3V0PSRBU0tfVElNRU9VVAorICAgICAgZmkKKworICAg ICAgaWYgWyAhICRfcmVzcG9uc2UgXTsgdGhlbgorICAgICAgICAgX3Jlc3BvbnNlPSRBU0tfREVG QVVMVAorICAgICAgZmkKKworICAgICAgcmVhZCAtdCAkX3RpbWVvdXQgLXAgIlJDX0FTSyAtIEVu YWJsZSAkbmFtZT8gW3llc3xub10gIiBfZW5hYmxlCisgICAgICBpZiBbICQ/IC1lcSAxIF07IHRo ZW4KKyAgICAgICAgIF9lbmFibGU9JHtfcmVzcG9uc2V9CisgICAgICBmaQorICAgICAgaWYgY2hl Y2t5ZXNubyBfZW5hYmxlOyB0aGVuCisgICAgICAgICBfY2hvaWNlPSJ5ZXMiCisgICAgICAgICBf cmV0dXJuPTAKKyAgICAgIGVsc2UKKyAgICAgICAgIF9jaG9pY2U9Im5vIgorICAgICAgICAgX3Jl dHVybj0xCisgICAgICBmaQorICAgICAgZWNobyAiJF9jaG9pY2UiID4gJF9maWxlCisgICAgICBy ZXR1cm4gICRfcmV0dXJuOworICAgICAgOzsKKworICAgKikKIAkJd2FybiAiXCQkezF9IGlzIG5v dCBzZXQgcHJvcGVybHkgLSBzZWUgJHtyY3Zhcl9tYW5wYWdlfS4iCiAJCXJldHVybiAxCiAJCTs7 Cg== ------=_Part_84371_3004703.1163619934329-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 20:31:24 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B119E16A416 for ; Wed, 15 Nov 2006 20:31:24 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6862043D5C for ; Wed, 15 Nov 2006 20:31:23 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GkRPl-0004ps-GV; Wed, 15 Nov 2006 20:31:21 +0000 Date: Wed, 15 Nov 2006 20:31:21 +0000 From: Ceri Davies To: Pietro Cerutti Message-ID: <20061115203121.GL52929@submonkey.net> Mail-Followup-To: Ceri Davies , Pietro Cerutti , freebsd-rc@freebsd.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="D6z0c4W1rkZNF4Vu" Content-Disposition: inline In-Reply-To: X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: freebsd-rc@freebsd.org Subject: Re: PR 105568 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: Wed, 15 Nov 2006 20:31:24 -0000 --D6z0c4W1rkZNF4Vu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2006 at 08:43:41PM +0100, Pietro Cerutti wrote: > Hello list, > I submitted a follow-up to [my own] PR 105568, here's the patch. > It sets a timeout of 5s and default answer of yes in rc.subr. After > the timeout has elapsed, the default answer will be taken as good, if > the user hasn't already chosen. >=20 > Furthermore, it allows setting per-daemon timeouts and default answers, w= ith >=20 > DAEMON_ask_timeout=3D{0-9}[s|m|h] > DAEMON_ask_default=3D[yes|no] >=20 > Ideas, feedback, .... welcome! I haven't looked at the patch yet, but this needs to default to "no" rather than "yes". That kind of makes it a no-op, doesn't it? Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --D6z0c4W1rkZNF4Vu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW3kZocfcwTS3JF8RAqQdAJ4oXpLa89JtmjXfLtoGZg6cf2uTxgCdE7+X cwjBJNtf3ZwlJhDJMQtYIj8= =+7Tn -----END PGP SIGNATURE----- --D6z0c4W1rkZNF4Vu-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:25:39 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76CC416A412 for ; Wed, 15 Nov 2006 21:25:39 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0A0B43D58 for ; Wed, 15 Nov 2006 21:25:38 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so253469uge for ; Wed, 15 Nov 2006 13:25:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=C7K02+6+2yBgHWWfvZ6CX8uIwf58ED/TKSQLPPBBsA32qERt8EOK2HZVmuQh029qqPH3dl/Hxie175b7hTzkXSVHG4UIM2FXdIKnQbUKRKF/IKDvTUmDHuH+4sPLgwmS67TK8/Yir4T03I6X5c0/y9l7/wRlGywZpxax9cnmLSM= Received: by 10.67.19.13 with SMTP id w13mr3694526ugi.1163625937195; Wed, 15 Nov 2006 13:25:37 -0800 (PST) Received: by 10.66.224.6 with HTTP; Wed, 15 Nov 2006 13:25:36 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 22:25:36 +0100 From: "Pietro Cerutti" To: "Ceri Davies" , freebsd-rc@freebsd.org In-Reply-To: <20061115203121.GL52929@submonkey.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061115203121.GL52929@submonkey.net> Cc: Subject: Re: PR 105568 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: Wed, 15 Nov 2006 21:25:39 -0000 On 11/15/06, Ceri Davies wrote: > > I haven't looked at the patch yet, but this needs to default to "no" > rather than "yes". That kind of makes it a no-op, doesn't it? This is kind of debatable... I think that - since you can change the default answer on a per-daemon basis - the global default answer shouldn't be an issue... > Ceri -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:36:16 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FE1416A4CE for ; Wed, 15 Nov 2006 21:36:16 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CD9443D73 for ; Wed, 15 Nov 2006 21:36:11 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GkSQT-000DGR-UX; Wed, 15 Nov 2006 21:36:09 +0000 Date: Wed, 15 Nov 2006 21:36:09 +0000 From: Ceri Davies To: Pietro Cerutti Message-ID: <20061115213609.GM52929@submonkey.net> Mail-Followup-To: Ceri Davies , Pietro Cerutti , freebsd-rc@freebsd.org References: <20061115203121.GL52929@submonkey.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dwWFXG4JqVa0wfCP" Content-Disposition: inline In-Reply-To: X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: freebsd-rc@freebsd.org Subject: Re: PR 105568 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: Wed, 15 Nov 2006 21:36:16 -0000 --dwWFXG4JqVa0wfCP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2006 at 10:25:36PM +0100, Pietro Cerutti wrote: > On 11/15/06, Ceri Davies wrote: > > > >I haven't looked at the patch yet, but this needs to default to "no" > >rather than "yes". That kind of makes it a no-op, doesn't it? >=20 > This is kind of debatable... > I think that - since you can change the default answer on a per-daemon > basis - the global default answer shouldn't be an issue... You'll probably find that it isn't debatable. If adding this patch as is results in boot-time prompting for every single foo_enable option in rc.conf then it won't get committed. If I've misunderstood what the default does, please say so. Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --dwWFXG4JqVa0wfCP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW4hJocfcwTS3JF8RAv28AJ9NjAk3ozrKXepCytBbfoUd5UJcpgCfeomO IFDw8PvJGsZuckThjcgc3uQ= =K3iL -----END PGP SIGNATURE----- --dwWFXG4JqVa0wfCP-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:40:19 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6572A16A5CF for ; Wed, 15 Nov 2006 21:40:19 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D94A43D8D for ; Wed, 15 Nov 2006 21:40:15 +0000 (GMT) (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 kAFLeEEw050849 for ; Wed, 15 Nov 2006 21:40:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFLeEXp050848; Wed, 15 Nov 2006 21:40:14 GMT (envelope-from gnats) Date: Wed, 15 Nov 2006 21:40:14 GMT Message-Id: <200611152140.kAFLeEXp050848@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Ceri Davies Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ceri Davies 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: Wed, 15 Nov 2006 21:40:19 -0000 The following reply was made to PR conf/105568; it has been noted by GNATS. From: Ceri Davies To: Pietro Cerutti Cc: FreeBSD Gnats Submit Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Date: Wed, 15 Nov 2006 21:38:30 +0000 On Wed, Nov 15, 2006 at 08:45:34PM +0100, Pietro Cerutti wrote: > Trying to get the attachment encoded as txt.... Just put the patch inline is easiest. Ceri From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:47:47 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D77F16A4E5 for ; Wed, 15 Nov 2006 21:47:47 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22B2943D60 for ; Wed, 15 Nov 2006 21:47:45 +0000 (GMT) (envelope-from pietro.cerutti@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so258806uge for ; Wed, 15 Nov 2006 13:47:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iit7l4sCRAXBtoFI789Gn05OTIwufitoKSnLWfJwHrjCjyu96oDAzfjta9B9x0LjboAH0tz47fs71kLavuzQcSRsYHxU+nMwL99Jzqn9U/gCel8sd+ZgmNvYeBUFWzEMX2t/8Ic186OGTU+jnkK2SiLtFwzH4STLlI881xs3fus= Received: by 10.66.232.11 with SMTP id e11mr3717321ugh.1163627264846; Wed, 15 Nov 2006 13:47:44 -0800 (PST) Received: by 10.66.224.6 with HTTP; Wed, 15 Nov 2006 13:47:44 -0800 (PST) Message-ID: Date: Wed, 15 Nov 2006 22:47:44 +0100 From: "Pietro Cerutti" To: "Ceri Davies" , "Pietro Cerutti" , freebsd-rc@freebsd.org In-Reply-To: <20061115213609.GM52929@submonkey.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061115203121.GL52929@submonkey.net> <20061115213609.GM52929@submonkey.net> Cc: Subject: Re: PR 105568 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: Wed, 15 Nov 2006 21:47:47 -0000 On 11/15/06, Ceri Davies wrote: > You'll probably find that it isn't debatable. If adding this patch as > is results in boot-time prompting for every single foo_enable option in > rc.conf then it won't get committed. If I've misunderstood what the > default does, please say so. Yes you've misunderstood the meaning of default, I'm sorry because this is probably my fault, as English isn't my native language. So,... Variables set with foo_enable=[yes|no] will maintain the behavior they have now. Variables set with foo_enable=ask will be treaded as follows: - user is asked to enter yes or no at startup, - if after the default-timeout or daemon-specific-timeout is elapsed the user hasn't still chosen, a default-response or daemon-specific-response is taken into account to decide whether the daemon is to be started or not. What is debatable, is to decide whether the default-response is to set to "yes" or "no". > > Ceri > -- > That must be wonderful! I don't understand it at all. > -- Moliere > > > -- Pietro Cerutti ICQ: 117293691 PGP: 0x9571F78E - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:48:50 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0097916A403 for ; Wed, 15 Nov 2006 21:48:50 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id C828443D82 for ; Wed, 15 Nov 2006 21:48:36 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20061115214835m9200kmip9e>; Wed, 15 Nov 2006 21:48:35 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.8/8.13.8) with ESMTP id kAFLmRgY069094; Wed, 15 Nov 2006 15:48:27 -0600 (CST) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.8/8.13.8/Submit) id kAFLmQHk069092; Wed, 15 Nov 2006 15:48:26 -0600 (CST) (envelope-from brooks) Date: Wed, 15 Nov 2006 15:48:26 -0600 From: Brooks Davis To: Ceri Davies , Pietro Cerutti , freebsd-rc@freebsd.org Message-ID: <20061115214826.GA69001@lor.one-eyed-alien.net> References: <20061115203121.GL52929@submonkey.net> <20061115213609.GM52929@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="y0ulUmNC+osPPQO6" Content-Disposition: inline In-Reply-To: <20061115213609.GM52929@submonkey.net> User-Agent: Mutt/1.5.11 Cc: Subject: Re: PR 105568 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: Wed, 15 Nov 2006 21:48:50 -0000 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2006 at 09:36:09PM +0000, Ceri Davies wrote: > On Wed, Nov 15, 2006 at 10:25:36PM +0100, Pietro Cerutti wrote: > > On 11/15/06, Ceri Davies wrote: > > > > > >I haven't looked at the patch yet, but this needs to default to "no" > > >rather than "yes". That kind of makes it a no-op, doesn't it? > >=20 > > This is kind of debatable... >=20 > > I think that - since you can change the default answer on a per-daemon > > basis - the global default answer shouldn't be an issue... >=20 > You'll probably find that it isn't debatable. If adding this patch as > is results in boot-time prompting for every single foo_enable option in > rc.conf then it won't get committed. If I've misunderstood what the > default does, please say so. This only happens for services where the administrator sets _enable=3D"ask". -- Brooks --y0ulUmNC+osPPQO6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW4spXY6L6fI4GtQRAtwNAKDf938X6xESSTIcg1xre3x6IkQS4wCggjSb L2ftXiKKMfh6JkmVeCpgEsQ= =GXKn -----END PGP SIGNATURE----- --y0ulUmNC+osPPQO6-- From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:50:26 2006 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 [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3A1616A494 for ; Wed, 15 Nov 2006 21:50:25 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8616943D81 for ; Wed, 15 Nov 2006 21:50:14 +0000 (GMT) (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 kAFLoEQM051931 for ; Wed, 15 Nov 2006 21:50:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kAFLoEZO051930; Wed, 15 Nov 2006 21:50:14 GMT (envelope-from gnats) Date: Wed, 15 Nov 2006 21:50:14 GMT Message-Id: <200611152150.kAFLoEZO051930@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: "Pietro Cerutti" Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pietro Cerutti 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: Wed, 15 Nov 2006 21:50:26 -0000 The following reply was made to PR conf/105568; it has been noted by GNATS. From: "Pietro Cerutti" To: bug-followup@freebsd.org Cc: Subject: Re: conf/105568: [patch] Add more flexibility to rc.conf, to choose "_enable" values at startup Date: Wed, 15 Nov 2006 22:49:17 +0100 The patch is inline: --- /etc/rc.subr.orig Wed Nov 15 14:03:59 2006 +++ /etc/rc.subr Wed Nov 15 20:10:32 2006 @@ -56,6 +56,8 @@ ID="/usr/bin/id" JID=`ps -p $$ -o jid=` IDCMD="if [ -x $ID ]; then $ID -un; fi" +ASK_TIMEOUT="5s" +ASK_DEFAULT="YES" case ${OSTYPE} in FreeBSD) @@ -122,7 +124,8 @@ # # checkyesno var -# Test $1 variable, and warn if not set to YES or NO. +# Test $1 variable, and warn if not set to YES, NO or ASK. +# If it's "ask", let the user choose at runtime between "yes" and "no". # Return 0 if it's "yes" (et al), nonzero otherwise. # checkyesno() @@ -140,7 +143,52 @@ [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) return 1 ;; - *) + + # "ask" + [Aa][Ss][Kk]) + + # answer already stored in .ask file, + # this should be the case on shutdown + _file="/var/run/$name.ask" + if [ -f $_file ]; then + read _response < $_file + if checkyesno _response; then + return 0 + else + return 1 + fi + fi + # prompt and save choice to file, + # this should be the case on startup + + # Read timeout and default answer for daemon + eval _timeout=\$${name}_ask_timeout + eval _response=\$${name}_ask_default + + if [ ! $_timeout ]; then + _timeout=$ASK_TIMEOUT + fi + + if [ ! $_response ]; then + _response=$ASK_DEFAULT + fi + + read -t $_timeout -p "RC_ASK - Enable $name? [yes|no] " _enable + if [ $? -eq 1 ]; then + _enable=${_response} + fi + if checkyesno _enable; then + _choice="yes" + _return=0 + else + _choice="no" + _return=1 + fi + echo "$_choice" > $_file + return $_return; + ;; + + *) warn "\$${1} is not set properly - see ${rcvar_manpage}." return 1 ;; From owner-freebsd-rc@FreeBSD.ORG Wed Nov 15 21:52:39 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40A0616A551 for ; Wed, 15 Nov 2006 21:52:39 +0000 (UTC) (envelope-from ceri@submonkey.net) Received: from shrike.submonkey.net (cpc2-cdif2-0-0-cust107.cdif.cable.ntl.com [81.104.168.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74D9A43D68 for ; Wed, 15 Nov 2006 21:52:07 +0000 (GMT) (envelope-from ceri@submonkey.net) Received: from ceri by shrike.submonkey.net with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GkSfu-000Ico-Ee; Wed, 15 Nov 2006 21:52:06 +0000 Date: Wed, 15 Nov 2006 21:52:05 +0000 From: Ceri Davies To: Pietro Cerutti Message-ID: <20061115215205.GO52929@submonkey.net> Mail-Followup-To: Ceri Davies , Pietro Cerutti , freebsd-rc@freebsd.org References: <20061115203121.GL52929@submonkey.net> <20061115213609.GM52929@submonkey.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NqNl6FRZtoRUn5bW" Content-Disposition: inline In-Reply-To: X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Ceri Davies Cc: freebsd-rc@freebsd.org Subject: Re: PR 105568 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: Wed, 15 Nov 2006 21:52:39 -0000 --NqNl6FRZtoRUn5bW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 15, 2006 at 10:47:44PM +0100, Pietro Cerutti wrote: > On 11/15/06, Ceri Davies wrote: >=20 > >You'll probably find that it isn't debatable. If adding this patch as > >is results in boot-time prompting for every single foo_enable option in > >rc.conf then it won't get committed. If I've misunderstood what the > >default does, please say so. >=20 > Yes you've misunderstood the meaning of default, I'm sorry because > this is probably my fault, as English isn't my native language. So,... >=20 > Variables set with foo_enable=3D[yes|no] will maintain the behavior they = have=20 > now. >=20 > Variables set with foo_enable=3Dask will be treaded as follows: > - user is asked to enter yes or no at startup, > - if after the default-timeout or daemon-specific-timeout is elapsed > the user hasn't still chosen, a default-response or > daemon-specific-response is taken into account to decide whether the > daemon is to be started or not. OK, that sounds reasonable. Apologies for the confusion. Ceri --=20 That must be wonderful! I don't understand it at all. -- Moliere --NqNl6FRZtoRUn5bW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFW4wFocfcwTS3JF8RApiFAKCjLUFWTLGlGBY+or5kave3oGJXSQCeNbhz sAfuLgsapPVJWt5RcEdKknw= =ObkI -----END PGP SIGNATURE----- --NqNl6FRZtoRUn5bW-- From owner-freebsd-rc@FreeBSD.ORG Thu Nov 16 08:30:43 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44C3D16A40F for ; Thu, 16 Nov 2006 08:30:43 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1CBB43D4C for ; Thu, 16 Nov 2006 08:30:36 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id kAG8UXBi037827; Thu, 16 Nov 2006 11:30:33 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id kAG8UWN9037826; Thu, 16 Nov 2006 11:30:32 +0300 (MSK) (envelope-from yar) Date: Thu, 16 Nov 2006 11:30:32 +0300 From: Yar Tikhiy To: subba Message-ID: <20061116083032.GA37133@comp.chem.msu.su> References: <7342892.post@talk.nabble.com> <20061114181204.GA51226@lor.one-eyed-alien.net> <7344729.post@talk.nabble.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7344729.post@talk.nabble.com> User-Agent: Mutt/1.5.9i Cc: freebsd-rc@freebsd.org Subject: Re: How to read ifconfig in FreeBSD..Help plss 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, 16 Nov 2006 08:30:43 -0000 On Tue, Nov 14, 2006 at 11:36:12AM -0800, subba wrote: > > I am not sure about 'to read the source and copy the parts into your > application'. Can you please elaborate?. When you said reading the source, > does it mean that pipe the 'ifconfig' to a file and read that file ... like > % ifconfig > somefile.txt > and read somefile.txt and get the ip, netmask and others.? > If this is the case, how can i pipe(C program) when the user logs in...i.e > when the user logs in, console menu should be displayed with current > IP,netmask etc. I am not sure if i am in the right direction. I'd appreciate > your help. You're lucky this time: In fact you don't need to read the source files of ifconfig, or to know what they are in the first place, to be able to obtain the network interface configuration from a C program. ;-) There is a handy function in the FreeBSD C library named getifaddrs() that will extract the data from the kernel and put it in a list of simple structures. Using it is much easier than parsing output from ifconfig. Just see the getifaddrs(3) manpage. However, note that this mailing list is inappropriate for such a discussion. Please post your further questions on this topic to freebsd-questions. -- Yar From owner-freebsd-rc@FreeBSD.ORG Sat Nov 18 17:28:59 2006 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 9D80216A529 for ; Sat, 18 Nov 2006 17:28:59 +0000 (UTC) (envelope-from cannot@partytimesupply.com) Received: from [195.210.225.166] (BSN-210-225-166.dial-up.dsl.siol.net [195.210.225.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6581043E1A for ; Sat, 18 Nov 2006 17:28:24 +0000 (GMT) (envelope-from cannot@partytimesupply.com) Message-ID: <001101c70b36$f326e320$a6e1d2c3@xy40b87df0ffca> From: "when" To: freebsd-rc@hub.freebsd.org Date: Sat, 18 Nov 2006 18:28:23 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000D_01C70B3F.54EB4B20" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: innocence Informer 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, 18 Nov 2006 17:28:59 -0000 ------=_NextPart_000_000D_01C70B3F.54EB4B20 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Stocks Quotes in attachement Away a murder Speaking. Other no will qualify has. Deal only is is being treated is by as of unique country. Lucknow Patna or Bangalore Kolkata Mumbai Pune. That of Matters Mind Over Matter is Open Space! Networkthe am Dutch ban of flies is flag for general. ------=_NextPart_000_000D_01C70B3F.54EB4B20-- From owner-freebsd-rc@FreeBSD.ORG Sat Nov 18 17:28:59 2006 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 BA49416A47E for ; Sat, 18 Nov 2006 17:28:59 +0000 (UTC) (envelope-from ov@pallettvalo.com) Received: from [195.210.225.166] (BSN-210-225-166.dial-up.dsl.siol.net [195.210.225.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0EA543DFF for ; Sat, 18 Nov 2006 17:28:25 +0000 (GMT) (envelope-from ov@pallettvalo.com) Message-ID: <000b01c70b36$f3babeb0$a6e1d2c3@xy40b87df0ffca> From: "LUCKNOW" To: freebsd-rc@freebsd.org Date: Sat, 18 Nov 2006 18:28:24 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0007_01C70B3F.557F26B0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: film promotes sanctity marriage 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, 18 Nov 2006 17:28:59 -0000 ------=_NextPart_000_0007_01C70B3F.557F26B0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Stocks Quotes in attachement Newscities City or Sports World Business Intl Infotech Health. Aquarius Pisces Review? Test am Indiakrish or Africans start favourites. Kamal Dahal speaks meeting new Delhi ap us! Smith spots or chink armoury is should a time Ganguly South a Africa! Inc cites Tatas bid am Chinese of Prez urged meet Dalai! ------=_NextPart_000_0007_01C70B3F.557F26B0--