From owner-freebsd-rc@FreeBSD.ORG Mon Aug 27 11:07:21 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D02E8106566C for ; Mon, 27 Aug 2012 11:07:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B9A708FC1C for ; Mon, 27 Aug 2012 11:07:21 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q7RB7LMk085973 for ; Mon, 27 Aug 2012 11:07:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q7RB7LOQ085971 for freebsd-rc@FreeBSD.org; Mon, 27 Aug 2012 11:07:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 27 Aug 2012 11:07:21 GMT Message-Id: <201208271107.q7RB7LOQ085971@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-rc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-rc@FreeBSD.org X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2012 11:07:21 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o conf/169373 rc mountd starts too early when exporting fs marked as la o conf/169047 rc [rc.subr] [patch] /etc/rc.subr not checking some scrip o bin/168544 rc [patch] [rc]: addswap-mounted swapfiles cause panic on o conf/167566 rc [rc.d] [patch] ipdivert module loading vs. ipfw rc.d o o conf/166484 rc [rc] [patch] rc.initdiskless patch for different major o conf/165769 rc [rc][jai][ipv6] IPv6 Initialization on external iface o bin/165477 rc [rc] dhclient is run twice o conf/164393 rc [rc.d] restarting netif with static addresses doesn't o conf/163508 rc [rc.subr] [patch] Add "enable" and "disable" commands o conf/163488 rc Confusing explanation in defaults/rc.conf o conf/163321 rc [rc.conf] [patch] allow _fib syntax in rc.conf o conf/162642 rc .sh scripts in /usr/local/etc/rc.d get executed, not s p kern/161899 rc [route] ntpd(8): Repeating RTM_MISS packets causing hi o conf/161107 rc [rc] stop_boot in mountcritlocal usage is incorrect. o conf/160403 rc [rc] [patch] concurrently running rc-scripts during bo o conf/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/150474 rc [patch] rc.d/accounting: Add ability to set location o o conf/149867 rc [PATCH] rc.d script to manage multiple FIBS (kern opti o conf/149831 rc [PATCH] add support to /etc/rc.d/jail for delegating Z o conf/148656 rc rc.firewall(8): {oip} and {iip} variables in rc.firewa o conf/147685 rc [rc.d] [patch] new feature for /etc/rc.d/fsck o conf/147444 rc [rc.d] [patch] /etc/rc.d/zfs stop not called on reboot o conf/146053 rc [patch] [request] shutdown of jails breaks inter-jail o conf/145445 rc [rc.d] error in /etc/rc.d/jail (bad logic) o conf/145399 rc [patch] rc.d scripts are unable to start/stop programs o conf/145009 rc [patch] rc.subr(8): rc.conf should allow mac label con o conf/144213 rc [rc.d] [patch] Disappearing zvols on reboot o conf/143637 rc [patch] ntpdate(8) support for ntp-servers supplied by o conf/143085 rc [patch] ftp-proxy(8) rc(8) with multiple instances o conf/142973 rc [jail] [patch] Strange counter init value in jail rc o conf/142434 rc [patch] Add cpuset(1) support to rc.subr(8) o conf/142304 rc rc.conf(5): mdconfig and mdconfig2 rc.d scripts lack e o conf/141909 rc rc.subr(8): [patch] add rc.conf.d support to /usr/loca o conf/141907 rc [rc.d] Bug if mtu (maybe others?) is set as first argu o conf/141678 rc [patch] A minor enhancement to how /etc/rc.d/jail dete o conf/141275 rc [request] dhclient(8) rc script should print something o conf/140440 rc [patch] allow local command files in rc.{suspend,resum o conf/140261 rc [patch] Improve flexibility of mdconfig2 startup scrip o conf/138208 rc [rc.d] [patch] Making rc.firewall (workstation) IPv6 a o conf/137629 rc [rc.d] background_dhclient rc.conf option causing doub o conf/137470 rc [PATCH] /etc/rc.d/mdconfig2 : prioritize cli parameter o conf/137271 rc [rc.d] Cannot update /etc/host.conf when root filesyst o conf/136624 rc [rc.d] sysctl variables for ipnat are not applied on b o conf/135338 rc [rc.d] pf startup order seems broken [regression] o conf/134918 rc [patch] rc.subr fails to detect perl daemons o conf/134660 rc [patch] rc-script for initializing ng_netflow+ng_ipfw o conf/134333 rc PPP configuration problem in the rc.d scripts in combi o conf/134006 rc [patch] Unload console screensaver kernel modules if s o conf/133890 rc [patch] sshd(8): add multiple profiles to the rc.d scr o conf/132483 rc rc.subr(8) [patch] setfib(1) support for rc.subr o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105145 rc [ppp] [patch] [request] add redial function to rc.d/pp o conf/104549 rc [patch] rc.d/nfsd needs special _find_processes functi o conf/102700 rc [geli] [patch] Add encrypted /tmp support to GELI/GBDE o conf/99721 rc [patch] /etc/rc.initdiskless problem copy dotfile in s o conf/99444 rc [patch] Enhancement: rc.subr could easily support star o conf/96343 rc [patch] rc.d order change to start inet6 before pf o conf/93815 rc [patch] Adds in the ability to save ipfw rules to rc.d o conf/92523 rc [patch] allow rc scripts to kill process after a timeo o conf/89870 rc [patch] [request] make netif verbose rc.conf toggle o conf/88913 rc [patch] wrapper support for rc.subr o conf/85819 rc [patch] script allowing multiuser mode in spite of fsc o kern/81006 rc ipnat not working with tunnel interfaces on startup o conf/77663 rc Suggestion: add /etc/rc.d/addnetswap after addcritremo o conf/73677 rc [patch] add support for powernow states to power_profi o conf/58939 rc [patch] dumb little hack for /etc/rc.firewall{,6} o conf/56934 rc [patch] rc.firewall rules for natd expect an interface o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 96 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Aug 27 20:46:36 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 664) id B2F311065674; Mon, 27 Aug 2012 20:46:36 +0000 (UTC) Date: Mon, 27 Aug 2012 13:46:35 -0700 From: David O'Brien To: freebsd-rc@freebsd.org Message-ID: <20120827204635.GA55142@dragon.NUXI.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 10.0-CURRENT X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.20 (2009-06-14) Subject: FILESYSTEMS wierdness X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org 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, 27 Aug 2012 20:46:36 -0000 'FILESYSTEMS' states: "This is a dummy dependency, for services which require file systems to be mounted before starting." However, we have 'var' which can mount /var if it already isn't mounted. Therefor it seems to me that 'FILESYSTEMS' should depend on 'var' and not the other way around. Additionally, the 'var' and 'addswap' requirement of 'kld' puzzles me. We've done a poor job of documenting why a non-trivially obvious requirement exists. Why does the 'kld' requirement exist for these two? It also seems to me that 'FILESYSTEMS' means the file systems are fully "ready to go". But /var isn't until after 'cleanvar' runs. So it seems to me that 'FILESYSTEMS' should require 'cleanvar' also. For the same reasons as 'swap1', it seems to me that 'addswap' should occur pretty early to ensure we have a swap pager [D&I 5.10]. It is unclear to me if 'addswap' should be considered a pseudo-FS and should have a "BEFORE: FILESYSTEMS" also. On a 3rd note, I found the gap between FILESYSTEMS & NETWORKING too large. See seem to have some artificial "BEFORE: netif" to fill the need for BASIC (or LOCAL) things that should run early before we go through any motions bringing up networking, but only after FILESYSTEMS. It is used in things like: addswap, adjkerntz, hostname, kldxref, opensm, random. On a fourth note, what is 'opensm' for? Seems part of Jeffr's InfiniBand work as some googling implies it is "InfiniBand compliant Subnet Manager" but the utility used in 'opensm' (/usr/bin/opensm) doesn't exist on any 10-CURRENT I checked. Was 'opensm' added before its time? Thoughts? -- -- David (obrien@FreeBSD.org) Index: ldconfig =================================================================== --- ldconfig (revision 239751) +++ ldconfig (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: ldconfig -# REQUIRE: mountcritremote cleanvar +# REQUIRE: mountcritremote FILESYSTEMS # BEFORE: DAEMON . /etc/rc.subr Index: random =================================================================== --- random (revision 239751) +++ random (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: random -# REQUIRE: initrandom var +# REQUIRE: initrandom FILESYSTEMS # BEFORE: netif # KEYWORD: nojail shutdown Index: mountcritremote =================================================================== --- mountcritremote (revision 239751) +++ mountcritremote (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: mountcritremote -# REQUIRE: NETWORKING FILESYSTEMS cleanvar ipsec netwait +# REQUIRE: NETWORKING FILESYSTEMS ipsec netwait # KEYWORD: nojail . /etc/rc.subr Index: dmesg =================================================================== --- dmesg (revision 239751) +++ dmesg (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: dmesg -# REQUIRE: mountcritremote cleanvar +# REQUIRE: mountcritremote FILESYSTEMS # BEFORE: DAEMON # KEYWORD: nojail Index: sshd =================================================================== --- sshd (revision 239751) +++ sshd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: sshd -# REQUIRE: LOGIN cleanvar +# REQUIRE: LOGIN FILESYSTEMS # KEYWORD: shutdown . /etc/rc.subr Index: watchdogd =================================================================== --- watchdogd (revision 239751) +++ watchdogd (working copy) @@ -28,7 +28,7 @@ # # PROVIDE: watchdogd -# REQUIRE: FILESYSTEMS cleanvar syslogd +# REQUIRE: FILESYSTEMS syslogd # KEYWORD: nojail shutdown . /etc/rc.subr Index: mixer =================================================================== --- mixer (revision 239751) +++ mixer (working copy) @@ -28,7 +28,7 @@ # # PROVIDE: mixer -# REQUIRE: cleanvar +# REQUIRE: FILESYSTEMS # KEYWORD: nojail shutdown . /etc/rc.subr Index: sendmail =================================================================== --- sendmail (revision 239751) +++ sendmail (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: mail -# REQUIRE: LOGIN cleanvar +# REQUIRE: LOGIN FILESYSTEMS # we make mail start late, so that things like .forward's are not # processed until the system is fully operational # KEYWORD: shutdown Index: resolv =================================================================== --- resolv (revision 239751) +++ resolv (working copy) @@ -28,7 +28,7 @@ # # PROVIDE: resolv -# REQUIRE: netif var +# REQUIRE: netif FILESYSTEMS # KEYWORD: nojail . /etc/rc.subr Index: jail =================================================================== --- jail (revision 239751) +++ jail (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: jail -# REQUIRE: LOGIN cleanvar +# REQUIRE: LOGIN FILESYSTEMS # BEFORE: securelevel # KEYWORD: nojail shutdown Index: postrandom =================================================================== --- postrandom (revision 239751) +++ postrandom (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: postrandom -# REQUIRE: initrandom random var +# REQUIRE: initrandom random FILESYSTEMS # BEFORE: LOGIN # KEYWORD: nojail Index: var =================================================================== --- var (revision 239751) +++ var (working copy) @@ -28,7 +28,9 @@ # # PROVIDE: var -# REQUIRE: FILESYSTEMS kld addswap +# REQUIRE: mountcritlocal zfs + +# NFS /var is not supported, unless NFS /var is part of diskless NFS / . /etc/rc.subr Index: ftpd =================================================================== --- ftpd (revision 239751) +++ ftpd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: ftpd -# REQUIRE: LOGIN cleanvar +# REQUIRE: LOGIN FILESYSTEMS # KEYWORD: shutdown . /etc/rc.subr Index: mrouted =================================================================== --- mrouted (revision 239751) +++ mrouted (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: mrouted -# REQUIRE: netif routing cleanvar +# REQUIRE: netif routing FILESYSTEMS # KEYWORD: nojail . /etc/rc.subr Index: amd =================================================================== --- amd (revision 239751) +++ amd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: amd -# REQUIRE: rpcbind ypset nfsclient cleanvar ldconfig +# REQUIRE: rpcbind ypset nfsclient FILESYSTEMS ldconfig # BEFORE: DAEMON # KEYWORD: nojail shutdown Index: netif =================================================================== --- netif (revision 239751) +++ netif (working copy) @@ -26,7 +26,7 @@ # # PROVIDE: netif -# REQUIRE: atm1 cleanvar FILESYSTEMS serial sppp sysctl +# REQUIRE: atm1 FILESYSTEMS serial sppp sysctl # REQUIRE: ipfilter ipfs # KEYWORD: nojail Index: FILESYSTEMS =================================================================== --- FILESYSTEMS (revision 239751) +++ FILESYSTEMS (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: FILESYSTEMS -# REQUIRE: root mountcritlocal zfs +# REQUIRE: root mountcritlocal cleanvar zfs # This is a dummy dependency, for services which require file systems # to be mounted before starting. It also serves as the default early / Index: utx =================================================================== --- utx (revision 239751) +++ utx (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: utx -# REQUIRE: DAEMON cleanvar +# REQUIRE: DAEMON FILESYSTEMS # KEYWORD: shutdown . /etc/rc.subr Index: addswap =================================================================== --- addswap (revision 239751) +++ addswap (working copy) @@ -7,6 +7,7 @@ # PROVIDE: addswap # REQUIRE: FILESYSTEMS kld +# BEFORE: netif # KEYWORD: nojail . /etc/rc.subr Index: cron =================================================================== --- cron (revision 239751) +++ cron (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: cron -# REQUIRE: LOGIN cleanvar +# REQUIRE: LOGIN FILESYSTEMS # BEFORE: securelevel # KEYWORD: shutdown Index: pflog =================================================================== --- pflog (revision 239751) +++ pflog (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: pflog -# REQUIRE: FILESYSTEMS netif cleanvar +# REQUIRE: FILESYSTEMS netif FILESYSTEMS # KEYWORD: nojail . /etc/rc.subr Index: named =================================================================== --- named (revision 239751) +++ named (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: named -# REQUIRE: SERVERS cleanvar +# REQUIRE: SERVERS FILESYSTEMS # KEYWORD: shutdown . /etc/rc.subr Index: cleanvar =================================================================== --- cleanvar (revision 239751) +++ cleanvar (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: cleanvar -# REQUIRE: FILESYSTEMS var +# REQUIRE: var . /etc/rc.subr Index: moused =================================================================== --- moused (revision 239751) +++ moused (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: moused -# REQUIRE: DAEMON cleanvar +# REQUIRE: DAEMON FILESYSTEMS # KEYWORD: nojail shutdown . /etc/rc.subr Index: syslogd =================================================================== --- syslogd (revision 239751) +++ syslogd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: syslogd -# REQUIRE: mountcritremote cleanvar newsyslog +# REQUIRE: mountcritremote FILESYSTEMS newsyslog # BEFORE: SERVERS . /etc/rc.subr Index: inetd =================================================================== --- inetd (revision 239751) +++ inetd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: inetd -# REQUIRE: DAEMON LOGIN cleanvar +# REQUIRE: DAEMON LOGIN FILESYSTEMS # KEYWORD: shutdown . /etc/rc.subr Index: ipmon =================================================================== --- ipmon (revision 239751) +++ ipmon (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: ipmon -# REQUIRE: FILESYSTEMS hostname sysctl cleanvar ipfilter +# REQUIRE: FILESYSTEMS hostname sysctl FILESYSTEMS ipfilter # BEFORE: SERVERS # KEYWORD: nojail Index: newsyslog =================================================================== --- newsyslog (revision 239751) +++ newsyslog (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: newsyslog -# REQUIRE: cleanvar mountcritremote +# REQUIRE: FILESYSTEMS mountcritremote . /etc/rc.subr Index: ntpd =================================================================== --- ntpd (revision 239751) +++ ntpd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: ntpd -# REQUIRE: DAEMON ntpdate cleanvar devfs +# REQUIRE: DAEMON ntpdate FILESYSTEMS devfs # BEFORE: LOGIN # KEYWORD: nojail shutdown Index: rarpd =================================================================== --- rarpd (revision 239751) +++ rarpd (working copy) @@ -4,7 +4,7 @@ # # PROVIDE: rarpd -# REQUIRE: DAEMON cleanvar +# REQUIRE: DAEMON FILESYSTEMS # BEFORE: LOGIN # KEYWORD: nojail From owner-freebsd-rc@FreeBSD.ORG Wed Aug 29 19:28:46 2012 Return-Path: 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 6ED5F106566B; Wed, 29 Aug 2012 19:28:46 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id EC30A8FC1C; Wed, 29 Aug 2012 19:28:39 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJR5B9002156 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:27:06 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E6D62.3000101@FreeBSD.org> Date: Wed, 29 Aug 2012 15:28:34 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org, ruby@FreeBSD.org X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:27:06 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: Subject: procname when ruby is used 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, 29 Aug 2012 19:28:46 -0000 Hi, I've encountered a situation with an rc script that I'm not sure how to solve. The issue is summarized well in this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps other things. There is a function in the bsd.ruby.mk that replaces the shebang lines of ruby scripts, causing the issue in the PR (which I've verified). I'm not sure how I can change the rc script to accommodate the variance. Any suggestions? Thanks, Steve From owner-freebsd-rc@FreeBSD.ORG Wed Aug 29 19:39:41 2012 Return-Path: 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 06665106564A; Wed, 29 Aug 2012 19:39:41 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id B50158FC12; Wed, 29 Aug 2012 19:39:40 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJc6Cf002369 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:38:07 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E6FF8.60706@FreeBSD.org> Date: Wed, 29 Aug 2012 15:39:36 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> In-Reply-To: <503E6D62.3000101@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:38:07 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org Subject: Re: procname when ruby is used 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, 29 Aug 2012 19:39:41 -0000 On 08/29/12 15:28, Steve Wills wrote: > Hi, > > I've encountered a situation with an rc script that I'm not sure how to > solve. The issue is summarized well in this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 > > Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby > 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps > other things. There is a function in the bsd.ruby.mk that replaces the > shebang lines of ruby scripts, causing the issue in the PR (which I've > verified). I'm not sure how I can change the rc script to accommodate > the variance. Any suggestions? > Naturally I come up with a workaround just after sending... name="mcollectived" command="%%PREFIX%%/sbin/${name}" procname="%%PREFIX%%/bin/`head -n1 ${command} | sed -e 's,.*/,,'`" rc people, is this too ugly? :) Thanks, Steve From owner-freebsd-rc@FreeBSD.ORG Wed Aug 29 19:57:38 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80C71106566C; Wed, 29 Aug 2012 19:57:38 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 3B3A88FC08; Wed, 29 Aug 2012 19:57:38 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7TJu4cx002722 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 15:56:04 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503E742D.3030801@FreeBSD.org> Date: Wed, 29 Aug 2012 15:57:33 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-rc@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> In-Reply-To: <503E6FF8.60706@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 15:56:04 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org Subject: Re: procname when ruby is used 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, 29 Aug 2012 19:57:38 -0000 On 08/29/12 15:39, Steve Wills wrote: > On 08/29/12 15:28, Steve Wills wrote: >> Hi, >> >> I've encountered a situation with an rc script that I'm not sure how to >> solve. The issue is summarized well in this PR: >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 >> >> Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby >> 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps >> other things. There is a function in the bsd.ruby.mk that replaces the >> shebang lines of ruby scripts, causing the issue in the PR (which I've >> verified). I'm not sure how I can change the rc script to accommodate >> the variance. Any suggestions? >> > > Naturally I come up with a workaround just after sending... > > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > procname="%%PREFIX%%/bin/`head -n1 ${command} | sed -e 's,.*/,,'`" > > rc people, is this too ugly? :) > Sorry for the spam. Someone on IRC suggested a cleaner way: name="mcollectived" command="%%PREFIX%%/sbin/${name}" read procname <"${command}" procname="%%PREFIX%%/bin/${procname##*/}" Opinions? Steve From owner-freebsd-rc@FreeBSD.ORG Wed Aug 29 22:33:18 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: by hub.freebsd.org (Postfix, from userid 664) id 6949C1065759; Wed, 29 Aug 2012 22:33:18 +0000 (UTC) Date: Wed, 29 Aug 2012 22:33:18 +0000 From: David O'Brien To: Steve Wills Message-ID: <20120829223318.GA32596@hub.freebsd.org> References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> <503E742D.3030801@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <503E742D.3030801@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 7.4-STABLE Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: obrien@freebsd.org 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, 29 Aug 2012 22:33:18 -0000 On Wed, Aug 29, 2012 at 03:57:33PM -0400, Steve Wills wrote: > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > read procname <"${command}" > procname="%%PREFIX%%/bin/${procname##*/}" Wouldn't this work? name="mcollectived" command="%%PREFIX%%/sbin/${name}" procname="%%PREFIX%%/bin/${command##*/}" (For example, "${0##*/}" is basename of a shell script's full path name) -- -- David (obrien@FreeBSD.org) From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 01:30:42 2012 Return-Path: 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 0C7CA1065670; Thu, 30 Aug 2012 01:30:41 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC948FC08; Thu, 30 Aug 2012 01:30:41 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7U1T5ar008260 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 21:29:06 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503EC23C.30601@FreeBSD.org> Date: Wed, 29 Aug 2012 21:30:36 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: obrien@FreeBSD.org References: <503E6D62.3000101@FreeBSD.org> <503E6FF8.60706@FreeBSD.org> <503E742D.3030801@FreeBSD.org> <20120829223318.GA32596@hub.freebsd.org> In-Reply-To: <20120829223318.GA32596@hub.freebsd.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 21:29:06 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used 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, 30 Aug 2012 01:30:42 -0000 On 08/29/12 18:33, David O'Brien wrote: > On Wed, Aug 29, 2012 at 03:57:33PM -0400, Steve Wills wrote: >> name="mcollectived" >> command="%%PREFIX%%/sbin/${name}" >> read procname <"${command}" >> procname="%%PREFIX%%/bin/${procname##*/}" > > Wouldn't this work? > > name="mcollectived" > command="%%PREFIX%%/sbin/${name}" > procname="%%PREFIX%%/bin/${command##*/}" > > (For example, "${0##*/}" is basename of a shell script's full path name) > No, the process looks like this: /usr/local/bin/ruby19 /usr/local/sbin/mcollectived -p /var/run/mcollectived.pid But depending on what version of ruby is used or what ${RUBY} is set to, the "ruby19" part could be something different such as "ruby18", "jruby" or "rbx" (rubinius). Steve From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 01:38:54 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id E9A16106564A; Thu, 30 Aug 2012 01:38:54 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 681D214D802; Thu, 30 Aug 2012 01:38:52 +0000 (UTC) Message-ID: <503EC42B.6000302@FreeBSD.org> Date: Wed, 29 Aug 2012 15:38:51 -1000 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Steve Wills References: <503E6D62.3000101@FreeBSD.org> In-Reply-To: <503E6D62.3000101@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used 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, 30 Aug 2012 01:38:55 -0000 On 08/29/2012 09:28 AM, Steve Wills wrote: > Hi, > > I've encountered a situation with an rc script that I'm not sure how to > solve. The issue is summarized well in this PR: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170980 > > Basically, the "ruby" that's in use can vary because ruby 1.8 or ruby > 1.9 may be used. There may be "ruby", "ruby18" or "ruby19" or perhaps > other things. There is a function in the bsd.ruby.mk that replaces the > shebang lines of ruby scripts, causing the issue in the PR (which I've > verified). I'm not sure how I can change the rc script to accommodate > the variance. Any suggestions? I'm pretty sure you actually want to use command_interpreter instead of procname. It should actually be very rare to use procname directly in an rc.d script. That said, I understand the problem you are dealing with, and I agree that we don't have a clean solution for it. I dealt with something similar in net-mgmt/hawk, you might want to take a look at that. Basically I brute-forced the shebang line in the installed script and the value of command_interpreter in the rc.d script to both match ${PERL}. Not sure if that exact solution will work for you, but hopefully it gives you some ideas. Doug From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 03:06:51 2012 Return-Path: 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 340061065670; Thu, 30 Aug 2012 03:06:51 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) by mx1.freebsd.org (Postfix) with ESMTP id E0D988FC17; Thu, 30 Aug 2012 03:06:50 +0000 (UTC) Received: from meatwad.mouf.net (cpe-024-162-230-236.nc.res.rr.com [24.162.230.236]) (authenticated bits=0) by mouf.net (8.14.5/8.14.5) with ESMTP id q7U35EHv010105 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Wed, 29 Aug 2012 23:05:14 -0400 (EDT) (envelope-from swills@FreeBSD.org) Message-ID: <503ED8C5.2010203@FreeBSD.org> Date: Wed, 29 Aug 2012 23:06:45 -0400 From: Steve Wills User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120604 Thunderbird/12.0.1 MIME-Version: 1.0 To: Doug Barton References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> In-Reply-To: <503EC42B.6000302@FreeBSD.org> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (mouf.net [199.48.129.64]); Wed, 29 Aug 2012 23:05:15 -0400 (EDT) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.97.5 at mouf.net X-Virus-Status: Clean Cc: ruby@FreeBSD.org, freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used 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, 30 Aug 2012 03:06:51 -0000 On 08/29/12 21:38, Doug Barton wrote: > > I'm pretty sure you actually want to use command_interpreter instead of > procname. It should actually be very rare to use procname directly in an > rc.d script. Got it, although that means picking the value at build time, but that seems OK. > That said, I understand the problem you are dealing with, and I agree > that we don't have a clean solution for it. I dealt with something > similar in net-mgmt/hawk, you might want to take a look at that. > Basically I brute-forced the shebang line in the installed script and > the value of command_interpreter in the rc.d script to both match > ${PERL}. Not sure if that exact solution will work for you, but > hopefully it gives you some ideas. > Yeah, it works... Thanks, Steve From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 03:37:18 2012 Return-Path: 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 18D76106566B; Thu, 30 Aug 2012 03:37:18 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id B5BB78FC19; Thu, 30 Aug 2012 03:37:17 +0000 (UTC) Received: from orion.swifttest.com (unknown [74.3.97.61]) by mx0.deglitch.com (Postfix) with ESMTPSA id 6278D8FC27; Thu, 30 Aug 2012 07:37:13 +0400 (MSK) Received: from orion.swifttest.com (localhost [127.0.0.1]) by orion.swifttest.com (Postfix) with SMTP id 34A9C5C3C; Wed, 29 Aug 2012 20:36:14 -0700 (PDT) Date: Wed, 29 Aug 2012 20:36:14 -0700 From: Stanislav Sedov To: Steve Wills Message-Id: <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> In-Reply-To: <503ED8C5.2010203@FreeBSD.org> References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> <503ED8C5.2010203@FreeBSD.org> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ruby@FreeBSD.org, Doug Barton , freebsd-rc@FreeBSD.org Subject: Re: procname when ruby is used 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, 30 Aug 2012 03:37:18 -0000 On Wed, 29 Aug 2012 23:06:45 -0400 Steve Wills mentioned: > On 08/29/12 21:38, Doug Barton wrote: > > > > I'm pretty sure you actually want to use command_interpreter instead of > > procname. It should actually be very rare to use procname directly in an > > rc.d script. > > Got it, although that means picking the value at build time, but that > seems OK. > We actually already have a practice of doing that with RUBY_SHEBANG, so it seems reasonable. -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments From owner-freebsd-rc@FreeBSD.ORG Thu Aug 30 08:39:45 2012 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by hub.freebsd.org (Postfix) with ESMTP id 9E4A6106566B; Thu, 30 Aug 2012 08:39:45 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 05EDC14E27F; Thu, 30 Aug 2012 08:39:44 +0000 (UTC) Message-ID: <503F26D0.1050109@FreeBSD.org> Date: Wed, 29 Aug 2012 22:39:44 -1000 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Stanislav Sedov References: <503E6D62.3000101@FreeBSD.org> <503EC42B.6000302@FreeBSD.org> <503ED8C5.2010203@FreeBSD.org> <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> In-Reply-To: <20120829203614.5f51db26061ea094f122379f@FreeBSD.org> X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Steve Wills , freebsd-rc@FreeBSD.org, ruby@FreeBSD.org Subject: Re: procname when ruby is used 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, 30 Aug 2012 08:39:45 -0000 On 08/29/2012 05:36 PM, Stanislav Sedov wrote: > On Wed, 29 Aug 2012 23:06:45 -0400 > Steve Wills mentioned: > >> On 08/29/12 21:38, Doug Barton wrote: >>> >>> I'm pretty sure you actually want to use command_interpreter instead of >>> procname. It should actually be very rare to use procname directly in an >>> rc.d script. >> >> Got it, although that means picking the value at build time, but that >> seems OK. >> > > We actually already have a practice of doing that with RUBY_SHEBANG, so it > seems reasonable. GMTA. :) I'm sensitive to the issue of this being build time reliant which means that if the user upgrades their ruby version the rc.d script could become outdated. I think that this could be ameliorated by forcing the shebang line to be just /usr/local/bin/ruby, but I'm not sure how ruby handles that. One way we could improve the situation would be to support a glob pattern for command_interpreter. Haven't thought through the implications of that though. Doug From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 08:14:41 2012 Return-Path: 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 1D106106566C; Fri, 31 Aug 2012 08:14:41 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id BF4A98FC08; Fri, 31 Aug 2012 08:14:40 +0000 (UTC) Received: by obbun3 with SMTP id un3so6529348obb.13 for ; Fri, 31 Aug 2012 01:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=vcomT1PH0iJSeRS+f/VpvVWwjkO0ZETCnamjnIoAf1I=; b=FZVfXnByPnP+OLdU0V9E3oyesGfpp3ZvPkBsbjaHt7pJsv9PfwsyVwSv0uozjVNkjx j5RnZfFR6dqKql/eORDmRjWPXZ9xTsWifqd5P/6zA5Xs9tMmz1EOu206UyAO4HiX6vil x4ZcJG+IfL1jr03LLA2+o9Dil+yxaHiL7Qv/U0RDbC0cIYN4234j0VvRX9jcRMQixQ5w 8vp6ZSzpifFNgjhoVuAsacoG/pg/kRKhb9SGU48sjK1bB30mMEUfWWBeirciiVRhVKQq U0+iz9jvoRSJDwQs60PPJNQviGyOluyoUha5hqRDmOHcTru1lKZNlugTjbdu8QJZCb/C Hv0w== MIME-Version: 1.0 Received: by 10.182.111.39 with SMTP id if7mr6858430obb.56.1346400880205; Fri, 31 Aug 2012 01:14:40 -0700 (PDT) Received: by 10.76.142.201 with HTTP; Fri, 31 Aug 2012 01:14:40 -0700 (PDT) In-Reply-To: <50407056.3000606@passap.ru> References: <50407056.3000606@passap.ru> Date: Fri, 31 Aug 2012 01:14:40 -0700 Message-ID: From: Garrett Cooper To: =?KOI8-R?B?4s/SydMg88HNz9LPxM/X?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, "freebsd-rc@FreeBSD.org" Subject: Re: rpcbind does not honor -h flag 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, 31 Aug 2012 08:14:41 -0000 On Fri, Aug 31, 2012 at 1:05 AM, =E2=CF=D2=C9=D3 =F3=C1=CD=CF=D2=CF=C4=CF= =D7 wrote: > Hi All, > > I've it at 9.1-PRERELEASE and I've got a chance to test at CURRENT. > It's the same (mind a line with "udp4 *:768" at sockstat info): > ----- > % sockstat -4l | grep rpcbind > > % grep rpcbind /etc/rc.conf.local > rpcbind_flags=3D"-h 192.168.119.6" > rpcbind_enable=3D"YES" > > % sudo /etc/rc.d/rpcbind start > Starting rpcbind. > > % sockstat -4l | grep rpcbind > root rpcbind 4265 9 udp4 127.0.0.1:111 *:* > root rpcbind 4265 10 udp4 192.168.119.6:111 *:* > root rpcbind 4265 11 udp4 *:768 *:* > root rpcbind 4265 12 tcp4 127.0.0.1:111 *:* > root rpcbind 4265 13 tcp4 192.168.119.6:111 *:* > > % uname -a > FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #31 r239793: Wed A= ug > 29 03:00:30 SAMT 2012 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX i38= 6 This is a generic rc(5) bug: $ sudo env rpcbind_flags=3D"-6" /etc/rc.d/rpcbind restart Stopping rpcbind. Waiting for PIDS: 509. Starting rpcbind. $ ps auxww | grep rpcbind root 776 0.6 0.0 14056 1844 ?? Ss 1:07AM 0:00.02 /usr/sbin/rpcbind gcooper 778 0.0 0.0 16196 1660 1 S+ 1:07AM 0:00.00 grep rp= cbind $ sudo env rpcbind_flags=3D"-6" /etc/rc.d/rpcbind restart rc_flags =3D rc_flags =3D Stopping rpcbind. Waiting for PIDS: 801. rc_flags =3D Starting rpcbind. $ sudo env sshd_flags=3D"blahblahblah" /etc/rc.d/sshd restart rc_flags =3D rc_flags =3D Stopping sshd. Waiting for PIDS: 613. rc_flags =3D Starting sshd. $ ps auxww | grep sshd root 861 0.0 0.0 28728 3668 ?? Is 1:11AM 0:00.00 /usr/sbin/sshd root 84730 0.0 0.0 47812 4040 ?? Is Wed09AM 0:00.15 sshd: gcooper [priv] (sshd) gcooper 84732 0.0 0.0 47812 4028 ?? I Wed09AM 0:02.73 sshd: gcooper@pts/0 (sshd) root 88236 0.0 0.0 47812 4040 ?? Is 8:43AM 0:00.16 sshd: gcooper [priv] (sshd) gcooper 88238 0.0 0.0 47812 4028 ?? S 8:43AM 0:02.29 sshd: gcooper@pts/1 (sshd) root 88262 0.0 0.0 47812 4040 ?? Is 8:46AM 0:00.10 sshd: gcooper [priv] (sshd) gcooper 88264 0.0 0.0 47812 4028 ?? S 8:46AM 0:00.80 sshd: gcooper@pts/2 (sshd) gcooper 863 0.0 0.0 16196 1668 1 S+ 1:11AM 0:00.01 grep ss= hd $ uname -a FreeBSD bayonetta.local 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #13 r239292M: Wed Aug 15 02:42:48 PDT 2012 gcooper@bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA amd64 Please file a PR against rc ASAP. Thanks, -Garrett From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 08:22:20 2012 Return-Path: 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 7450A1065670; Fri, 31 Aug 2012 08:22:20 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 208DA8FC0C; Fri, 31 Aug 2012 08:22:19 +0000 (UTC) Received: by obbun3 with SMTP id un3so6540794obb.13 for ; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=wCROLM4TPC3VKezzBRrtO4Rk6D/VfDU6qIXtMqw9c5s=; b=nVFn7vdr4WQUMsxeod0AA/Rw2KvBLFnkoL7svEKj+VM+pmpx/Z0o2vO0sh+QmMHKic 9DC3kDGFmWxYPfxCZoINwZjM23ErRzkIGI/2+zMCk5h+8eEV87bhL/P5C65AOd3Vvryc pYSM3hqJrE8SgjOz0+o4zjQhyTxIPtd4MMga/VQ2XtU817EwEyk/79hTLKvWQDc6UXcy fPe3Ficb9V62O2v/srcVKw9qiPejLuMWCjlusySf/3jwKaaxO/U5scAX7lvTBxvFak22 FbiBRhGYmWRgtTYSp2htOMhRsRJLi8r06s0TbI5j2ZLFnfIawQlDRw8cvDwPVI3RY/Xx As8A== MIME-Version: 1.0 Received: by 10.182.222.39 with SMTP id qj7mr7009472obc.16.1346401339478; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) Received: by 10.76.142.201 with HTTP; Fri, 31 Aug 2012 01:22:19 -0700 (PDT) In-Reply-To: References: <50407056.3000606@passap.ru> Date: Fri, 31 Aug 2012 01:22:19 -0700 Message-ID: From: Garrett Cooper To: =?KOI8-R?B?4s/SydMg88HNz9LPxM/X?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, "freebsd-rc@FreeBSD.org" Subject: Re: rpcbind does not honor -h flag 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, 31 Aug 2012 08:22:20 -0000 On Fri, Aug 31, 2012 at 1:14 AM, Garrett Cooper wrote: > On Fri, Aug 31, 2012 at 1:05 AM, =E2=CF=D2=C9=D3 =F3=C1=CD=CF=D2=CF=C4=CF= =D7 wrote: >> Hi All, >> >> I've it at 9.1-PRERELEASE and I've got a chance to test at CURRENT. >> It's the same (mind a line with "udp4 *:768" at sockstat info): >> ----- >> % sockstat -4l | grep rpcbind >> >> % grep rpcbind /etc/rc.conf.local >> rpcbind_flags=3D"-h 192.168.119.6" >> rpcbind_enable=3D"YES" >> >> % sudo /etc/rc.d/rpcbind start >> Starting rpcbind. >> >> % sockstat -4l | grep rpcbind >> root rpcbind 4265 9 udp4 127.0.0.1:111 *:* >> root rpcbind 4265 10 udp4 192.168.119.6:111 *:* >> root rpcbind 4265 11 udp4 *:768 *:* >> root rpcbind 4265 12 tcp4 127.0.0.1:111 *:* >> root rpcbind 4265 13 tcp4 192.168.119.6:111 *:* >> >> % uname -a >> FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #31 r239793: Wed = Aug >> 29 03:00:30 SAMT 2012 bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX i3= 86 > > This is a generic rc(5) bug: ... > Please file a PR against rc ASAP. Grr... that's right. /etc/defaults/rc.conf overwrites anything set in the environment. Please ignore the previous email. And FWIW, rpcbind doesn't in fact bind to specific addresses like you claim= : $ sockstat -4 | grep rpcbind root rpcbind 1060 9 udp4 127.0.0.1:111 *:* root rpcbind 1060 10 udp4 192.168.20.2:111 *:* root rpcbind 1060 11 udp4 *:974 *:* root rpcbind 1060 12 tcp4 127.0.0.1:111 *:* root rpcbind 1060 13 tcp4 192.168.20.2:111 *:* Thanks, -Garrett From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 08:34:26 2012 Return-Path: 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 E1519106564A; Fri, 31 Aug 2012 08:34:26 +0000 (UTC) (envelope-from maxim.konovalov@gmail.com) Received: from mp2.macomnet.net (ipv6.irc.int.ru [IPv6:2a02:28:1:2::1b:2]) by mx1.freebsd.org (Postfix) with ESMTP id 4751E8FC0A; Fri, 31 Aug 2012 08:34:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.14.5/8.14.5) with ESMTP id q7V8YOb7023170; Fri, 31 Aug 2012 12:34:24 +0400 (MSK) (envelope-from maxim.konovalov@gmail.com) Date: Fri, 31 Aug 2012 12:34:24 +0400 (MSK) From: Maxim Konovalov To: Garrett Cooper In-Reply-To: Message-ID: References: <50407056.3000606@passap.ru> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "freebsd-rc@FreeBSD.org" , freebsd-current@freebsd.org, =?KOI8-R?B?4s/SydMg88HNz9LPxM/X?= Subject: Re: rpcbind does not honor -h flag 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, 31 Aug 2012 08:34:27 -0000 > > Please file a PR against rc ASAP. > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/117711 -- Maxim Konovalov From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 08:20:59 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3207106564A; Fri, 31 Aug 2012 08:20:59 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward1h.mail.yandex.net (forward1h.mail.yandex.net [IPv6:2a02:6b8:0:f05::10]) by mx1.freebsd.org (Postfix) with ESMTP id 5FB4C8FC0C; Fri, 31 Aug 2012 08:20:59 +0000 (UTC) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward1h.mail.yandex.net (Yandex) with ESMTP id 4096B9E1D9F; Fri, 31 Aug 2012 12:20:53 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id B23E41340023; Fri, 31 Aug 2012 12:20:53 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id KqR8Y8IA-KrRO0H1a; Fri, 31 Aug 2012 12:20:53 +0400 Message-ID: <504073E4.1080007@passap.ru> Date: Fri, 31 Aug 2012 12:20:52 +0400 From: =?KOI8-R?Q?=E2=CF=D2=C9=D3_=F3=C1=CD=CF=D2=CF=C4=CF=D7?= User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:14.0) Gecko/20120728 Thunderbird/14.0 MIME-Version: 1.0 To: Garrett Cooper References: <50407056.3000606@passap.ru> In-Reply-To: Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Fri, 31 Aug 2012 10:56:39 +0000 Cc: freebsd-current@freebsd.org, "freebsd-rc@FreeBSD.org" Subject: Re: rpcbind does not honor -h flag 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, 31 Aug 2012 08:21:00 -0000 31.08.2012 12:14, Garrett Cooper пишет: > Please file a PR against rc ASAP. Can someone file a PR on the matter? (ENOTIME for me) Thanks! -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-rc@FreeBSD.ORG Fri Aug 31 15:11:39 2012 Return-Path: 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 42BCC1065675; Fri, 31 Aug 2012 15:11:39 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F7A98FC17; Fri, 31 Aug 2012 15:11:38 +0000 (UTC) Received: by eaak11 with SMTP id k11so995287eaa.13 for ; Fri, 31 Aug 2012 08:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=nIuQFCy7/VxRI7C+KvVTevA1DsUFVYVohFVD5dF3X3A=; b=FV24kH4zTKIp2KJDqakbxF1EWfZ1z54M/pBhpB7aAB8f6nsy9QT0d4pfjhn2nzjpov EmuGZXYo4yFMCKPFrjR5SyXbvZFJKKmNMXE99qTPoLnhsbqmbYcJm6dQK9FBjei0Jn84 XsMZg5DarWXhWDH/fkXHHXXiSVSOXpA7XV0zEZwuQKgK606JerurPdW+5fb06Sa1sFiQ 9y9uywn754GXdC8iX+VUiE79W1fx3ly4iyxnWKlgsyiTBdmA+J6nh1Y7BUerbYpxvi/J FYvsUqmaEdVh7XeLn08HBy7uq0tqVD35rhB1Q++zGLdyXWwYo2lTWvnYyifoic7DP3PV SagA== MIME-Version: 1.0 Received: by 10.14.213.137 with SMTP id a9mr11602309eep.38.1346425897355; Fri, 31 Aug 2012 08:11:37 -0700 (PDT) Received: by 10.14.47.1 with HTTP; Fri, 31 Aug 2012 08:11:37 -0700 (PDT) In-Reply-To: <50407912.60809@passap.ru> References: <50407056.3000606@passap.ru> <50407912.60809@passap.ru> Date: Fri, 31 Aug 2012 10:11:37 -0500 Message-ID: From: Scot Hetzel To: =?KOI8-R?B?4s/SydMg88HNz9LPxM/X?= Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Cc: Garrett Cooper , Maxim Konovalov , "freebsd-rc@FreeBSD.org" , freebsd-current@freebsd.org Subject: Re: rpcbind does not honor -h flag 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, 31 Aug 2012 15:11:39 -0000 On Fri, Aug 31, 2012 at 3:42 AM, =E2=CF=D2=C9=D3 =F3=C1=CD=CF=D2=CF=C4=CF= =D7 wrote: > 31.08.2012 12:34, Maxim Konovalov =D0=C9=DB=C5=D4: > >>>> Please file a PR against rc ASAP. >>> >>> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/117711 > > > I see. Thanks. > Looks like Matteo Riondato had created a patch for the problem in 2008: http://people.freebsd.org/~matteo/diff/117711rpcbind.diff but he never received any feedback from Carlos Eduardo Monti to see if the patch fixed the problem. I don't know if the patch will apply to the current FreeBSD rpcbind code, give it a try and submit a follow up to the PR. Scot From owner-freebsd-rc@FreeBSD.ORG Sat Sep 1 14:42:16 2012 Return-Path: Delivered-To: freebsd-rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B508A106566B; Sat, 1 Sep 2012 14:42:16 +0000 (UTC) (envelope-from lists@c0mplx.org) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id 60F0B8FC0C; Sat, 1 Sep 2012 14:42:16 +0000 (UTC) Received: from pi by home.opsec.eu with local (Exim 4.77 (FreeBSD)) (envelope-from ) id 1T7otp-00075y-Ma; Sat, 01 Sep 2012 16:42:13 +0200 Date: Sat, 1 Sep 2012 16:42:13 +0200 From: Kurt Jaeger To: Scot Hetzel Message-ID: <20120901144213.GF3324@home.opsec.eu> References: <50407056.3000606@passap.ru> <50407912.60809@passap.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: "freebsd-rc@FreeBSD.org" , Garrett Cooper , Maxim Konovalov , freebsd-current@freebsd.org, matteo@freebsd.org, bsam@passap.ru Subject: Re: rpcbind does not honor -h flag 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, 01 Sep 2012 14:42:16 -0000 Hi! > >>>> Please file a PR against rc ASAP. > >> http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/117711 > Looks like Matteo Riondato had created a patch for the problem in 2008: > > http://people.freebsd.org/~matteo/diff/117711rpcbind.diff > > but he never received any feedback from Carlos Eduardo Monti to see if > the patch fixed the problem. > I don't know if the patch will apply to the current FreeBSD rpcbind > code, give it a try and submit a follow up to the PR. In the current form the patch fails in rpcbind.c on 9.1-RC1. There are two problems with the current rpcbind.c. 1) It seems to be that even if some -h is given, the rpcbind code uses some SUN-RPC trickery around the /etc/netconfig file to open sockets for localhost in v4 and v6. Is it required to bind to localhost according to the RPC spec ? 2) And it opens some dynamic ports for other uses -- anybody has an idea why this is necessary ? Is there an requirement for this in the spec ? Below is an example of both issues. root rpcbind 2134 4 udp6 *:* *:* root rpcbind 2134 5 stream /var/run/rpcbind.sock root rpcbind 2134 6 udp6 *:111 *:* root rpcbind 2134 7 udp6 *:924 *:* root rpcbind 2134 8 tcp6 *:111 *:* root rpcbind 2134 9 udp4 *:111 *:* root rpcbind 2134 10 udp4 *:645 *:* root rpcbind 2134 11 tcp4 *:111 *:* Here's rpcbind started with -h : root rpcbind 2195 4 udp6 *:* *:* root rpcbind 2195 5 stream /var/run/rpcbind.sock root rpcbind 2195 6 udp6 ::1:111 *:* root rpcbind 2195 7 udp6 *:1013 *:* root rpcbind 2195 8 tcp6 ::1:111 *:* root rpcbind 2195 9 udp4 127.0.0.1:111 *:* root rpcbind 2195 10 udp4 :111 *:* root rpcbind 2195 11 udp4 *:634 *:* root rpcbind 2195 12 tcp4 127.0.0.1:111 *:* root rpcbind 2195 13 tcp4 :111 *:* One can see two dynamic udp ports opened (one v4, one v6). I might be naive, but from what I understand, it should not open that many sockets, but only like this: root rpcbind 2195 10 udp4 :111 *:* root rpcbind 2195 13 tcp4 :111 *:* If this naive 'spec' is correct, would a patch to do just this and nothing more be OK ? -- pi@opsec.eu +49 171 3101372 8 years to go !