From owner-freebsd-rc@FreeBSD.ORG Sun Aug 28 00:48:35 2011 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 BC1C1106566B; Sun, 28 Aug 2011 00:48:35 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 2FA3E14EC63; Sun, 28 Aug 2011 00:48:33 +0000 (UTC) Message-ID: <4E599061.8010908@FreeBSD.org> Date: Sat, 27 Aug 2011 17:48:33 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110824 Thunderbird/6.0 MIME-Version: 1.0 To: Devin Teske References: In-Reply-To: X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD RC , FreeBSD Hackers , FreeBSD Jail Subject: Re: [PATCH] Add /etc/rc.d/vimage startup script for creating vnet jails X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 00:48:35 -0000 Please stop cross-posting to multiple lists. If you want review for an rc.d issue post it to freebsd-rc@. Thanks, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ From owner-freebsd-rc@FreeBSD.ORG Mon Aug 29 06:05:43 2011 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 72FC0106564A; Mon, 29 Aug 2011 06:05:43 +0000 (UTC) (envelope-from zeus@relay.ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id D82B18FC08; Mon, 29 Aug 2011 06:05:42 +0000 (UTC) Received: from relay.ibs.dn.ua (localhost [127.0.0.1]) by relay.ibs.dn.ua with ESMTP id p7T65exM026653; Mon, 29 Aug 2011 09:05:40 +0300 (EEST) Received: (from zeus@localhost) by relay.ibs.dn.ua (8.14.4/8.14.4/Submit) id p7T65dmw026649; Mon, 29 Aug 2011 09:05:39 +0300 (EEST) Date: Mon, 29 Aug 2011 09:05:39 +0300 From: Zeus V Panchenko To: freebsd-net@freebsd.org, freebsd-rc@freebsd.org Message-ID: <20110829060539.GG99571@relay.ibs.dn.ua> Mail-Followup-To: freebsd-net@freebsd.org, freebsd-rc@freebsd.org, =?utf-8?B?0JLQu9Cw0LTQuNGB0LvQsNCyINCf0YDQvtC00LDQvQ==?= References: <20101112070759.GA36248@relay.ibs.dn.ua> <20101112230000.GD22460@michelle.cdnetworks.com> <20110121125917.GA48950@relay.ibs.dn.ua> <20110826120601.GA18070@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110826120601.GA18070@relay.ibs.dn.ua> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.1-RELEASE X-Editor: GNU Emacs 23.2.1 X-Face: iVBORw0KGgoAAAANSUhEUgAAACoAAAAqBAMAAAA37dRoAAAAFVBMVEWjjoiZhHDWzcZuW1U wOT+RcGxziJxEN0lIAAABrklEQVQokV2STXLbMAyFQaraE3a5dzSTfR1IF7CQrM3QuECn9z9DH0 gxzgSyFvr88PBD0uJxoR6BE+e8LtRgohE5ZB50sODP/REbfUnte/z12+llCekLUSKenFIMke6Be WinE8H0RJHSN71rUQp64gFDmtDDhRk0zam3FzpNVFprhwPGaFo6oY9wDBJQ9Qz6EuKyROJjDGa+ uza4VOTa8iHlN58Yv5BF9+4BGl0LA5pUD5xKXg4aQlVZm0co3NKxCGxQpu3aC352Gv3DZONmwQd tkrlaylV3YSew7bWtwAZF/zi9jblmprPoL7ktzeFSxmarVNmWRi+Bmxg7Y7tbGtR8XZUxLTo86G thANsssetjp3POuBvMBRlw6jRa5pKN7yVlP+F2lyiZGSMf5hnSU6eAVupmtfjRcxy0momwpxDnz 06hwnOWvBnUdR8U2/KX7cq26u1Jy5xFZMPOVONRbRUrwey8Qar6cWgf12xSymQuVX0DfYd4R8kN Hg0qCtLeaYZcj8B90M2N0cEX1P0vKSxw7NLy/3X8Qeriusu66jNA37P4Mn5QRTG2hz4d9D/6E3a EX852nwAAAABJRU5ErkJggg== Cc: =?utf-8?B?0JLQu9Cw0LTQuNGB0LvQsNCyINCf0YDQvtC00LDQvQ==?= Subject: Re: lagg(4) and alises X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: zeus@ibs.dn.ua 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, 29 Aug 2011 06:05:43 -0000 Hi, replying self question ... ipv4_addrs_lagg0="x.x.x.x/29 y.y.y.y/30 z.z.z.z/26" did help everything works after reboot all addressess are assigned and interface is up seems it is the only way to do that ... -- Zeus V. Panchenko JID:zeus@gnu.org.ua GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Mon Aug 29 07:37:14 2011 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 A5B5C106566B for ; Mon, 29 Aug 2011 07:37:14 +0000 (UTC) (envelope-from zeus@relay.ibs.dn.ua) Received: from relay.ibs.dn.ua (relay.ibs.dn.ua [91.216.196.25]) by mx1.freebsd.org (Postfix) with ESMTP id 1B9A88FC0A for ; Mon, 29 Aug 2011 07:37:13 +0000 (UTC) Received: from relay.ibs.dn.ua (localhost [127.0.0.1]) by relay.ibs.dn.ua with ESMTP id p7T7bCKX058166 for ; Mon, 29 Aug 2011 10:37:12 +0300 (EEST) Received: (from zeus@localhost) by relay.ibs.dn.ua (8.14.4/8.14.4/Submit) id p7T7bBq1058160 for freebsd-rc@freebsd.org; Mon, 29 Aug 2011 10:37:11 +0300 (EEST) Date: Mon, 29 Aug 2011 10:37:11 +0300 From: Zeus V Panchenko To: freebsd-rc@freebsd.org Message-ID: <20110829073711.GI99571@relay.ibs.dn.ua> Mail-Followup-To: freebsd-rc@freebsd.org References: <20101112070759.GA36248@relay.ibs.dn.ua> <20101112230000.GD22460@michelle.cdnetworks.com> <20110121125917.GA48950@relay.ibs.dn.ua> <20110826120601.GA18070@relay.ibs.dn.ua> <20110829060539.GG99571@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20110829060539.GG99571@relay.ibs.dn.ua> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.1-RELEASE X-Editor: GNU Emacs 23.2.1 X-Face: iVBORw0KGgoAAAANSUhEUgAAACoAAAAqBAMAAAA37dRoAAAAFVBMVEWjjoiZhHDWzcZuW1U wOT+RcGxziJxEN0lIAAABrklEQVQokV2STXLbMAyFQaraE3a5dzSTfR1IF7CQrM3QuECn9z9DH0 gxzgSyFvr88PBD0uJxoR6BE+e8LtRgohE5ZB50sODP/REbfUnte/z12+llCekLUSKenFIMke6Be WinE8H0RJHSN71rUQp64gFDmtDDhRk0zam3FzpNVFprhwPGaFo6oY9wDBJQ9Qz6EuKyROJjDGa+ uza4VOTa8iHlN58Yv5BF9+4BGl0LA5pUD5xKXg4aQlVZm0co3NKxCGxQpu3aC352Gv3DZONmwQd tkrlaylV3YSew7bWtwAZF/zi9jblmprPoL7ktzeFSxmarVNmWRi+Bmxg7Y7tbGtR8XZUxLTo86G thANsssetjp3POuBvMBRlw6jRa5pKN7yVlP+F2lyiZGSMf5hnSU6eAVupmtfjRcxy0momwpxDnz 06hwnOWvBnUdR8U2/KX7cq26u1Jy5xFZMPOVONRbRUrwey8Qar6cWgf12xSymQuVX0DfYd4R8kN Hg0qCtLeaYZcj8B90M2N0cEX1P0vKSxw7NLy/3X8Qeriusu66jNA37P4Mn5QRTG2hz4d9D/6E3a EX852nwAAAABJRU5ErkJggg== Subject: Re: lagg(4) and alises X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: zeus@ibs.dn.ua 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, 29 Aug 2011 07:37:14 -0000 Hi, replying self question ... ipv4_addrs_lagg0="x.x.x.x/29 y.y.y.y/30 z.z.z.z/26" did help everything works after reboot all addressess are assigned and interface is up seems it is the only way to do that ... -- Zeus V. Panchenko JID:zeus@gnu.org.ua GMT+2 (EET) From owner-freebsd-rc@FreeBSD.ORG Mon Aug 29 11:07:16 2011 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 39DCB106566C for ; Mon, 29 Aug 2011 11:07:16 +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 2857B8FC1D for ; Mon, 29 Aug 2011 11:07:16 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7TB7G1D089379 for ; Mon, 29 Aug 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7TB7FVi089377 for freebsd-rc@FreeBSD.org; Mon, 29 Aug 2011 11:07:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Aug 2011 11:07:15 GMT Message-Id: <201108291107.p7TB7FVi089377@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, 29 Aug 2011 11:07:16 -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/160240 rc rc.d/mdconfig and mdconfig2 should autoset $_type to v o conf/159846 rc [rc.conf] routing_stop_inet6() logic doesn't handle ip o conf/158557 rc [patch] /etc/rc.d/pf broken messages o conf/158127 rc [patch] remount_optional option in rc.initdiskless doe o conf/154554 rc [rc.d] [patch] statd and lockd fail to start o conf/153666 rc [rc.d][patch] mount filesystems from fstab over zfs da o conf/153200 rc post-boot /etc/rc.d/network_ipv6 start can miss neighb o conf/153123 rc [rc] [patch] add gsched rc file to automatically inser o conf/152784 rc services provide himself instead providing class of se o conf/150752 rc [rc.subr] [patch] be not needed to eval $_pidcmd on re 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/145440 rc [rc.d] [patch] add multiple fib support (setfib) in /e 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/143084 rc [jail] [patch]: fix rc.d/jail creating stray softlinks 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 s conf/136875 rc [request] _flags appending 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/132476 rc [rc.d] [patch] add support setfib(1) in rc.d/routing o conf/128299 rc [patch] /etc/rc.d/geli does not mount partitions using o bin/126562 rc rcorder(8) fails to run unrelated startup scripts when o conf/126392 rc [patch] rc.conf ifconfig_xx keywords cannot be escaped p bin/126324 rc [patch] rc.d/tmp: Prevent mounting /tmp in second tim o conf/124747 rc [patch] savecore can't create dump from encrypted swap o conf/124248 rc [jail] [patch] add support for nice value for rc.d/jai o conf/123734 rc [patch] Chipset VIA CX700 requires extra initializatio o conf/123222 rc [patch] Add rtprio(1)/idprio(1) support to rc.subr(8). o conf/123119 rc [patch] rc script for ipfw does not handle IPv6 o conf/122968 rc [rc.d] /etc/rc.d/addswap: md swapfile multiplication a o conf/122477 rc [patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring o conf/122170 rc [patch] [request] New feature: notify admin via page o o kern/121566 rc [nfs] [request] [patch] ethernet iface should be broug o conf/120431 rc [patch] devfs.rules are not initialized under certain o conf/120406 rc [devd] [patch] Handle newly attached pcm devices (eg. o conf/119874 rc [patch] "/etc/rc.d/pf reload" fails if there are macro o conf/119076 rc [patch] [rc.d] /etc/rc.d/netif tries to remove alias a o bin/118325 rc [patch] [request] new periodic script to test statuses o conf/118255 rc savecore never finding kernel core dumps (rcorder prob o conf/117935 rc [patch] ppp fails to start at boot because of missing o conf/113915 rc [patch] ndis wireless driver fails to associate when i o conf/109980 rc /etc/rc.d/netif restart doesn't destroy cloned_interfa o conf/109562 rc [rc.d] [patch] [request] Make rc.d/devfs usable from c o conf/109272 rc [request] increase default rc shutdown timeout o conf/108589 rc rtsol(8) fails due to default ipfw rules o conf/106009 rc [ppp] [patch] [request] Fix pppoed startup script to p o conf/105689 rc [ppp] [request] syslogd starts too late at boot o conf/105568 rc [patch] [request] Add more flexibility to rc.conf, to 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/89061 rc [patch] IPv6 6to4 auto-configuration enhancement 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/45226 rc [patch] Fix for rc.network, ppp-user annoyance o conf/44170 rc [patch] Add ability to run multiple pppoed(8) on start 95 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Aug 29 14:14:05 2011 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 07ED51065670 for ; Mon, 29 Aug 2011 14:14:05 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id C0E548FC19 for ; Mon, 29 Aug 2011 14:14:04 +0000 (UTC) Received: by gyd10 with SMTP id 10so5769058gyd.13 for ; Mon, 29 Aug 2011 07:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=aHNyV9/HrGVeGE+5GlZdcTjFxcSIsN4AzM6oUflGR9Y=; b=MZGhsQTce5JSYyqHhlaZFRL7lFDHXQRPaZIzLh40UU663RG8M5h47kHXWmc3VeZ4sO Rgyl54kF4GOjR/J/7L/jNanHP7bLvy2oBdhd0A27VQxVIN+8KzA3qjrv2FKsufF6DeeV h9/Qkdbe9F9Of3zj2Nhk+VSUdnmhfq1w7sa84= Received: by 10.43.50.129 with SMTP id ve1mr5121235icb.440.1314627243141; Mon, 29 Aug 2011 07:14:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.61.148 with HTTP; Mon, 29 Aug 2011 07:13:33 -0700 (PDT) From: Chris Rees Date: Mon, 29 Aug 2011 15:13:33 +0100 Message-ID: To: Phillip Neumann , freebsd-rc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Subject: RC script for rabbitmq 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, 29 Aug 2011 14:14:05 -0000 Hey all, Just hacked in pidfile support for rabbitmq into the rc script, and tidied it up a little. Please would someone kindly let me know if I'm doing anything horribly wron= g? Thanks! Chris http://www.bayofrum.net/~crees/patches/new-rabbitmq-rc-script.in --=20 Chris Rees =A0 =A0 =A0 =A0 =A0| FreeBSD Developer crees@FreeBSD.org =A0 | http://people.freebsd.org/~crees From owner-freebsd-rc@FreeBSD.ORG Tue Aug 30 00:53:40 2011 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 D7E1D1065672 for ; Tue, 30 Aug 2011 00:53:40 +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 23D7A15F1B9 for ; Tue, 30 Aug 2011 00:53:31 +0000 (UTC) Message-ID: <4E5C348D.2050703@FreeBSD.org> Date: Mon, 29 Aug 2011 17:53:33 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20110812 Thunderbird/6.0 MIME-Version: 1.0 To: freebsd-rc@freebsd.org References: In-Reply-To: X-Enigmail-Version: 1.3.1 Content-Type: multipart/mixed; boundary="------------030406000009010106080205" Subject: Re: RC script for rabbitmq 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, 30 Aug 2011 00:53:40 -0000 This is a multi-part message in MIME format. --------------030406000009010106080205 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 8/29/2011 7:13 AM, Chris Rees wrote: > Hey all, > > Just hacked in pidfile support for rabbitmq into the rc script, and > tidied it up a little. > > Please would someone kindly let me know if I'm doing anything horribly wrong? Not horribly, but you really need to read TPH section on rc.d scripts. :) Try the attached. -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ --------------030406000009010106080205 Content-Type: text/plain; name="new-rabbitmq-rc-script.in" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="new-rabbitmq-rc-script.in" #!/bin/sh # $Id$ # # PROVIDE: rabbitmq # REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable RabbitMQ # # rabbitmq_enable="YES" . /etc/rc.subr name=rabbitmq rcvar=`set_rcvar` load_rc_config $name # Set some defaults : ${rabbitmq_enable="NO"} : ${rabbitmq_user="rabbitmq"} rabbitmq_server="%%PREFIX%%/sbin/rabbitmq-server" rabbitmq_ctl="%%PREFIX%%/sbin/rabbitmqctl" pidfile="/var/run/rabbitmq.pid" start_cmd="${name}_start" stop_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} stop\"'" stop_postcmd="wait_for_pids $rc_pid" rotate_logs_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} rotate_logs\"'" status_cmd="env HOME=/var/db/rabbitmq su -m ${rabbitmq_user} -c 'sh -c \"${rabbitmq_ctl} status\"'" extra_commands="rotate_logs status" rabbitmq_start() { HOME=/var/db/rabbitmq su -m ${rabbitmq_user} \ -c "sh -c \"${rabbitmq_server} -detached\"" # Grab pid (it appears that parsing the output of # status is the most reliable method) su -m ${rabbitmq_user} \ -c "sh -c \"${rabbitmq_ctl} status\"" \ | sed -n 's/[^p]*pid,\([0-9]*\)[^0-9]*/\1/p' > ${pidfile} } run_rc_command "$1" --------------030406000009010106080205-- From owner-freebsd-rc@FreeBSD.ORG Wed Aug 31 12:44:00 2011 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 7A632106567A; Wed, 31 Aug 2011 12:44:00 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2AF358FC1F; Wed, 31 Aug 2011 12:44:00 +0000 (UTC) Received: by ywo32 with SMTP id 32so639276ywo.13 for ; Wed, 31 Aug 2011 05:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=bNraLfb623JzaE1hnFZobzbZSddzK0Vbe7pw4YgZZcw=; b=ZKuZ0MUiUk0ap4bWzzItdAQbt1bdY06enA76deA+N6YS7yiQV77qsFhhs/wApE7LLc u6Ez4VfRaeAFGlU8umj2LdM0Q6oX0zFsCC6YA8g0GEFJPa8XV2lrzgI+ASwHR82++jJL itEBUKPkfDFNwI7LOGnRDHwiZUxd22gbVU3Us= Received: by 10.43.50.129 with SMTP id ve1mr302529icb.440.1314794639430; Wed, 31 Aug 2011 05:43:59 -0700 (PDT) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.231.61.148 with HTTP; Wed, 31 Aug 2011 05:43:29 -0700 (PDT) In-Reply-To: <4E5C348D.2050703@FreeBSD.org> References: <4E5C348D.2050703@FreeBSD.org> From: Chris Rees Date: Wed, 31 Aug 2011 13:43:29 +0100 X-Google-Sender-Auth: jHD90jtk6gOLbDN_kAWZ97rFhUE Message-ID: To: Doug Barton Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-rc@freebsd.org Subject: Re: RC script for rabbitmq 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, 31 Aug 2011 12:44:00 -0000 On 30 August 2011 01:53, Doug Barton wrote: > On 8/29/2011 7:13 AM, Chris Rees wrote: >> Hey all, >> >> Just hacked in pidfile support for rabbitmq into the rc script, and >> tidied it up a little. >> >> Please would someone kindly let me know if I'm doing anything horribly wrong? > > Not horribly, but you really need to read TPH section on rc.d scripts. :) > > Try the attached. That's great, thank you. Chris From owner-freebsd-rc@FreeBSD.ORG Thu Sep 1 07:15:46 2011 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 A13E7106566C; Thu, 1 Sep 2011 07:15:46 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id 66A268FC15; Thu, 1 Sep 2011 07:15:46 +0000 (UTC) Received: from sbhfislrext01.fnfis.com ([192.168.249.167]) by SCSFISLTC01 (8.14.3/8.14.3) with ESMTP id p817Fjpo015600; Thu, 1 Sep 2011 02:15:45 -0500 Received: from sbhfisltcgw02.FNFIS.COM (Not Verified[10.132.248.122]) by sbhfislrext01.fnfis.com with MailMarshal (v6, 5, 4, 7535) id ; Thu, 01 Sep 2011 02:15:39 -0500 Received: from smtp.fisglobal.com ([10.132.206.15]) by sbhfisltcgw02.FNFIS.COM with Microsoft SMTPSVC(6.0.3790.4675); Thu, 1 Sep 2011 02:15:44 -0500 Received: from [10.0.0.104] (10.14.152.54) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.289.1; Thu, 1 Sep 2011 02:15:32 -0500 MIME-Version: 1.0 (Apple Message framework v1084) From: Devin Teske In-Reply-To: Date: Thu, 1 Sep 2011 00:15:42 -0700 Message-ID: <61AAA988-00F5-44CA-B446-4894A16E682D@fisglobal.com> References: To: FreeBSD RC X-Mailer: Apple Mail (2.1084) X-Originating-IP: [10.14.152.54] X-OriginalArrivalTime: 01 Sep 2011 07:15:44.0291 (UTC) FILETIME=[F6CC3730:01CC6876] Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Julian Elischer Subject: Re: [PATCH] Add /etc/rc.d/vimage startup script for creating vnet jails 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, 01 Sep 2011 07:15:46 -0000 On Aug 27, 2011, at 10:47 AM, Devin Teske wrote: > Hi All, >=20 > I'd like to submit a patch for review (attached) that adds a new /etc/rc.= d script named "vimage". >=20 > =20 Updated. See attached file or see the web at http://druidbsd.sf.net/download/vimage_rc.20110831135736.= patch Highlights: - optional automatic network interface bridging using netgraph(4) - automatic MAC address management of ng_eiface(4) devices - easily create multiple virtual NICs bridged to one or more physical NICs - can point vimages at same directory and configure all virtual NICs for va= rious vimages in single rc.conf(5) - potentially scale up to maximum number of virtual NICs, 65,535 - new "_bridges" option helps simplify more complicated setups in combinati= on with existing "_vnets" option in rc.conf (hint: lagg + carp) - does not require bridge(4) or epair(4) -- but works fine with if that's w= hat you want >=20 > Essentially, a hand-tweaked version of /etc/rc.d/jail with added/removed = features. >=20 > Here's how we're using it in /etc/rc.conf to successfully start up vimage= jails at boot time: >=20 New excerpt below, highlighting the new feature (netgraph(4) bridging): =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D BEGIN rc.conf(5) EXCERPT =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D vimage_enable=3D"YES" vimage_list=3D"v1 v2 v3" vimage_services=3D"sshd" # set all vimages to run sshd # Vimage with one network interface bridged to bge0 vimage_v1_rootdir=3D"/" vimage_v1_hostname=3D"vimage1" vimage_v1_bridges=3D"bge0" # Vimage with two network interfaces, both bridged to bge0 vimage_v2_rootdir=3D"/" vimage_v2_hostname=3D"vimage2" vimage_v2_bridges=3D"bge0 bge0" # Vimage with four network interfaces, bridged to various interfaces vimage_v3_rootdir=3D"/" vimage_v3_hostname=3D"vimage3" vimage_v3_bridges=3D"bge0 bge0 fxp0 em0 em1" # IP addresses for vimage1 ifconfig_ng0_v1=3D"inet 192.168.1.100/24" # IP addresses for vimage2 ifconfig_ng0_v2=3D"inet 192.168.1.101/24" ifconfig_ng1_v2=3D"inet 192.168.1.102/24" # IP addresses for vimage3 ifconfig_ng0_v3=3D"inet 192.168.1.103/24" ifconfig_ng1_v3=3D"inet 192.168.1.104/24" ifconfig_ng2_v3=3D"inet 10.0.0.13/24" ifconfig_ng3_v3=3D"inet 10.10.220.101/24" ifconfig_ng4_v3=3D"inet 10.10.220.102/24" =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D END rc.conf(5) EXCERPT =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Normally, you would put the IP address settings into an rc.conf(5) file tha= t is local to the vimage's root directory, but as seen above we pointed eac= h root directory to "/" so we can configure the network interface in the sa= me rc.conf(5). The names of the network interfaces that are created for each vimage are in= the form of: ng##_vimagename ASIDE: The reason for this may not be immediately obvious, but once you sta= rt expanding your virtual network or using ngctl(8) to dump your configurat= ion, you'll be happy that for the naming scheme chosen. However, there's a system limitation of 15 characters in length for network= interfaces displayed by ifconfig(8) (NOTE: ngctl(8) is happy to set the na= me to something longer than 15 characters but ifconfig(8) will refuse to di= splay that name, falling back to the real/default name). Therefore, it's im= portant to not make your vimage names too long (or if you do, make sure at = least the first 11 characters are unique as the script will truncate the na= me of the interface to fit within 15 characters). --=20 Cheers, Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you. _____________ From owner-freebsd-rc@FreeBSD.ORG Fri Sep 2 19:59:06 2011 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3191A106567D; Fri, 2 Sep 2011 19:59:06 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 098098FC20; Fri, 2 Sep 2011 19:59:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p82Jx5dw056793; Fri, 2 Sep 2011 19:59:05 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p82Jx5AY056789; Fri, 2 Sep 2011 19:59:05 GMT (envelope-from linimon) Date: Fri, 2 Sep 2011 19:59:05 GMT Message-Id: <201109021959.p82Jx5AY056789@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/160403: [rc] [patch] concurrently running rc-scripts during boot 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, 02 Sep 2011 19:59:06 -0000 Old Synopsis: concurrently running rc-scripts during boot New Synopsis: [rc] [patch] concurrently running rc-scripts during boot Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Fri Sep 2 19:58:20 UTC 2011 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=160403