From owner-freebsd-rc@FreeBSD.ORG Sun Mar 11 07:02:40 2012 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 57750106564A for ; Sun, 11 Mar 2012 07:02:40 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F57D8FC19 for ; Sun, 11 Mar 2012 07:02:39 +0000 (UTC) Received: by vcmm1 with SMTP id m1so3705995vcm.13 for ; Sat, 10 Mar 2012 23:02:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=B14tS1imqG4BG0KICjRNewWp+YG215tNB2Mv00acrG8=; b=dCnqM+I7ve426UhGxq1zzphcrKr6DOc8xHgTtFHTy7fdv8cf6lPUTicY+s/YTf95R4 mFl88QrcRc88BAddSmpSAHOXlqxNJIarj7RCmnp5SEXdWM6TnGg7Kjpo0KoTXCpvHlfU TWXnRhwaT8ElSVTGtGaY5GrxgY8DdBYCUKfV3/cA/+CTrLSsQg/P/oaYD7nofhjueGHN eLNUtV1ZZr+gapAosLJ2HtB6Jb9kTSOoo8zLOD3XphdrmHxnKeFW1mXZ0GIq05ZgOx5Y ZtJphbqFLzyWt5Qq7peE9iJeess7RI3BnnmzS6oYnDRa+k+Xcta+5yeAXRGtmku40urD tqmg== MIME-Version: 1.0 Received: by 10.52.27.10 with SMTP id p10mr11895929vdg.16.1331449359542; Sat, 10 Mar 2012 23:02:39 -0800 (PST) Sender: bsd-src@helfman.org Received: by 10.52.162.103 with HTTP; Sat, 10 Mar 2012 23:02:39 -0800 (PST) In-Reply-To: <86aa3sdqu9.fsf@red.stonehenge.com> References: <86r4x4dv1r.fsf@red.stonehenge.com> <4F57D10D.1030501@FreeBSD.org> <86aa3sdqu9.fsf@red.stonehenge.com> Date: Sat, 10 Mar 2012 23:02:39 -0800 X-Google-Sender-Auth: uQeKDVHHht2FskubqCnSSSMCYQU Message-ID: From: Jason Helfman To: "Randal L. Schwartz" X-Gm-Message-State: ALoCoQl0A8MSQ0kyxY8IURd5xEdFv9VT0HXPerBeDzSPa1MgUh5Bl+PplFAGQsqMzUPZbC+6HgGV Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: rc@freebsd.org, Matthew Seaman Subject: Re: need a shim between postgresql and pgpool 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: Sun, 11 Mar 2012 07:02:40 -0000 On Wed, Mar 7, 2012 at 1:49 PM, Randal L. Schwartz wrote: > >>>>> "Matthew" == Matthew Seaman writes: > > Matthew> For extra credit, write a small routine that attempts to log into > Matthew> postgres (or otherwise establish that postgres is up and doing) > and > Matthew> loops until it succeeds or it has reached a certain maximum > number of > Matthew> tries. Make this a function called start_precommand() and use the > Matthew> run_rc_command facility so it only runs if the script is given > some form > Matthew> of start argument. Docco on rc script functionality is in > rc.subr(8) > > Matthew> Also look at: > Matthew> > http://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html > > Yeah, I'd been staring at those for a few hours, even staring at the > source code of rc.subr to sort this out. Thanks for the drop-in > answer. I'll see if it does the job on the next reboot. > > This is starting to appear more and more like a bug in pgpool rc script. When are you going to run pgpool without a pgsql server? Why not have a dependeny on pgsq on pgpooll, and require it in rc? Am I off-base, or would there be instances where you would run pgpool outside of an environment running pgsql-server? thanks -jgh From owner-freebsd-rc@FreeBSD.ORG Sun Mar 11 08:04:54 2012 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FCAC106566C; Sun, 11 Mar 2012 08:04:54 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id CED0F8FC08; Sun, 11 Mar 2012 08:04:53 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q2B84icG003347 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 08:04:44 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.0 smtp.infracaninophile.co.uk q2B84icG003347 Authentication-Results: smtp.infracaninophile.co.uk/q2B84icG003347; dkim=none (no signature); dkim-adsp=none Message-ID: <4F5C5C96.8030505@FreeBSD.org> Date: Sun, 11 Mar 2012 08:04:38 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Jason Helfman References: <86r4x4dv1r.fsf@red.stonehenge.com> <4F57D10D.1030501@FreeBSD.org> <86aa3sdqu9.fsf@red.stonehenge.com> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFB93B0C379BB7BA49EDBB291" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: rc@FreeBSD.org, "Randal L. Schwartz" Subject: Re: need a shim between postgresql and pgpool 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: Sun, 11 Mar 2012 08:04:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFB93B0C379BB7BA49EDBB291 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/03/2012 07:02, Jason Helfman wrote: > When are you going to run > pgpool without a pgsql server? Why not have a dependeny on pgsq on pgpo= oll, > and require it in > rc? Um.. running pgpool on a different server than the actual postgresql instance is a pretty common practice actually. Given it can manage things like fail-over or distributing clients between replicated database= s. > Am I off-base, or would there be instances where you would run pgpool > outside of an environment > running pgsql-server? Ah, but was not the problem in this case. The problem is pgpool starting up right after pgsql in the rcorder sequence, and getting confused because postgresql still hadn't finished initializing itself and wasn't ready to answer queries yet, even though its rc-script had returned. However your question is valid -- I can't see that there's any means of ensuring that pgpool would start after a local postgresql instance built into the pgpool rc script. 'REQUIRE postgresql' seems a bit strong, given there's no need to have postgresql installed on the same machine. Should there be one however, then the ordering is desirable. Hmmm... maybe a DATABASES script to provide a sequencing point, similarly to LOGIN or NETWORKING ? Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigFB93B0C379BB7BA49EDBB291 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9cXJwACgkQ8Mjk52CukIxIaACfQuLTR32Wsf7iKwXDS0qGMt/+ KcsAnilp3mqDcHGuKjELfpA6Zdj+xB8t =817S -----END PGP SIGNATURE----- --------------enigFB93B0C379BB7BA49EDBB291-- From owner-freebsd-rc@FreeBSD.ORG Sun Mar 11 08:52:31 2012 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2A40A106566B; Sun, 11 Mar 2012 08:52:31 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 5450E8FC17; Sun, 11 Mar 2012 08:52:29 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2721178bkc.13 for ; Sun, 11 Mar 2012 00:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=rqt388d83eo8/5UnQv7mdZw/1t8nBuEKyXoXNbZP7ZU=; b=JpYk765ycH5JxKUftbYdFcpJFUJZcUG2Fbw0K+eD8ZSvGM5U3wNvDFBFiDefHN341E kDSP2dXi+qiTCDs6AnBoLwaBXLmkFa4iDHjgCOcnkQAC+6cN5lqbAi+bPUUOPFJCZaNb ixhWuqi67PWDg9ZJnSqwhOAjJURPdyOxs0RCSXCwIKFBvzxHm8mKT7pPe5bVu44ADvhj f/yMa/F0viXcTwxlquwTVJDr5lWPsTLhD2p/r6cNydVkdLDUuoQAOJPaKf0JN5xLSjVi 8ai2z0oeHnD+Gf8vHuapgEL1AS086IwRCO/vON/sQ3lukEsxE5YxKjYXpChMRS2ouZg7 +nDw== Received: by 10.204.145.155 with SMTP id d27mr3281957bkv.36.1331455949204; Sun, 11 Mar 2012 00:52:29 -0800 (PST) MIME-Version: 1.0 Sender: utisoft@gmail.com Received: by 10.204.202.142 with HTTP; Sun, 11 Mar 2012 00:51:59 -0800 (PST) In-Reply-To: <4F5C5C96.8030505@FreeBSD.org> References: <86r4x4dv1r.fsf@red.stonehenge.com> <4F57D10D.1030501@FreeBSD.org> <86aa3sdqu9.fsf@red.stonehenge.com> <4F5C5C96.8030505@FreeBSD.org> From: Chris Rees Date: Sun, 11 Mar 2012 08:51:59 +0000 X-Google-Sender-Auth: ksNcDvgKKJmLGJp0eQrqPBpr0Tw Message-ID: To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: rc@freebsd.org, Jason Helfman , "Randal L. Schwartz" Subject: Re: need a shim between postgresql and pgpool 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: Sun, 11 Mar 2012 08:52:31 -0000 On 11 March 2012 08:04, Matthew Seaman wrote: > On 11/03/2012 07:02, Jason Helfman wrote: >> When are you going to run >> pgpool without a pgsql server? Why not have a dependeny on pgsq on pgpoo= ll, >> and require it in >> rc? > > Um.. running pgpool on a different server than the actual postgresql > instance is a pretty common practice actually. =A0Given it can manage > things like fail-over or distributing clients between replicated database= s. > >> Am I off-base, or would there be instances where you would run pgpool >> outside of an environment >> running pgsql-server? > > Ah, but was not the problem in this case. =A0The problem is pgpool > starting up right after pgsql in the rcorder sequence, and getting > confused because postgresql still hadn't finished initializing itself > and wasn't ready to answer queries yet, even though its rc-script had > returned. > > However your question is valid -- I can't see that there's any means of > ensuring that pgpool would start after a local postgresql instance built > into the pgpool rc script. =A0'REQUIRE postgresql' seems a bit strong, > given there's no need to have postgresql installed on the same machine. > Should there be one however, then the ordering is desirable. =A0Hmmm... > maybe a DATABASES script to provide a sequencing point, similarly to > LOGIN or NETWORKING ? REQUIRE does not actually mean require; it means AFTER. Chris From owner-freebsd-rc@FreeBSD.ORG Sun Mar 11 09:19:23 2012 Return-Path: Delivered-To: rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F3E12106566B; Sun, 11 Mar 2012 09:19:22 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 5E52E8FC12; Sun, 11 Mar 2012 09:19:22 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q2B9JIbK004767 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 09:19:18 GMT (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.0 smtp.infracaninophile.co.uk q2B9JIbK004767 Authentication-Results: smtp.infracaninophile.co.uk/q2B9JIbK004767; dkim=none (no signature); dkim-adsp=none Message-ID: <4F5C6E0E.60906@FreeBSD.org> Date: Sun, 11 Mar 2012 09:19:10 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Chris Rees References: <86r4x4dv1r.fsf@red.stonehenge.com> <4F57D10D.1030501@FreeBSD.org> <86aa3sdqu9.fsf@red.stonehenge.com> <4F5C5C96.8030505@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig35940C0164BC9DFD888F0891" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: rc@FreeBSD.org, Jason Helfman , "Randal L. Schwartz" Subject: Re: need a shim between postgresql and pgpool 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: Sun, 11 Mar 2012 09:19:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig35940C0164BC9DFD888F0891 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/03/2012 08:51, Chris Rees wrote: > REQUIRE does not actually mean require; it means AFTER. Then why does the rcorder(8) man page say this under DIAGNOSTICS ? Requirement %s has no providers, aborting. No file has a ``PROVIDE'= ' line corresponding to a condition present in a ``REQUIRE'' line in another file. If 'REQUIRE' really means 'AFTER' then perhaps it should be spelled 'AFTE= R'. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enig35940C0164BC9DFD888F0891 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9cbhUACgkQ8Mjk52CukIyPCQCfTkImJzGWdUWUPgD5VFzcg0mt M4YAn3AClQ8qE8olZ/WPi10dKlWSeBpg =6UuS -----END PGP SIGNATURE----- --------------enig35940C0164BC9DFD888F0891-- From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 00:50:43 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 E14E4106564A for ; Mon, 12 Mar 2012 00:50:43 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (pancho.soaustin.net [76.74.250.40]) by mx1.freebsd.org (Postfix) with ESMTP id C37F78FC1A for ; Mon, 12 Mar 2012 00:50:42 +0000 (UTC) Received: by mail.soaustin.net (Postfix, from userid 502) id 7E917561EC; Sun, 11 Mar 2012 19:50:42 -0500 (CDT) Date: Sun, 11 Mar 2012 19:50:42 -0500 From: Mark Linimon To: freebsd-rc@FreeBSD.org Message-ID: <20120312005042.GC7675@lonesome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: [Fwd: ports/165928: graphics/sane-backends, devel/subversion rc scripts affecting rcorder in base] 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, 12 Mar 2012 00:50:44 -0000 this may need review by the rc@ team. I will admit to not understanding the security issues that may be involved in this PR. mcl ----- Forwarded message from linimon@FreeBSD.org ----- Date: Mon, 12 Mar 2012 00:47:46 GMT From: linimon@FreeBSD.org To: linimon@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, lev@FreeBSD.org Cc: Subject: Re: ports/165928: graphics/sane-backends, devel/subversion rc scripts affecting rcorder in base Old Synopsis: sane-backends, subversion rc scripts affecting rcorder in base New Synopsis: graphics/sane-backends, devel/subversion rc scripts affecting rcorder in base Responsible-Changed-From-To: freebsd-ports-bugs->lev Responsible-Changed-By: linimon Responsible-Changed-When: Mon Mar 12 00:45:07 UTC 2012 Responsible-Changed-Why: Over to maintainer of devel/subversion. graphics/sane-backends is unmaintained. http://www.freebsd.org/cgi/query-pr.cgi?pr=165928 _______________________________________________ freebsd-ports-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org" ----- End forwarded message ----- From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 02:04:06 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 2CB6A106566B; Mon, 12 Mar 2012 02:04:06 +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 CC3BA15137B; Mon, 12 Mar 2012 02:04:05 +0000 (UTC) Message-ID: <4F5D5995.50403@FreeBSD.org> Date: Sun, 11 Mar 2012 19:04:05 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Mark Linimon References: <20120312005042.GC7675@lonesome.com> In-Reply-To: <20120312005042.GC7675@lonesome.com> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-rc@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: [Fwd: ports/165928: graphics/sane-backends, devel/subversion rc scripts affecting rcorder in base] 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, 12 Mar 2012 02:04:06 -0000 sane-backends is clearly broken in this regard. It's not clear to me from the PR what subversion's culpability is, but if it has similar REQUIRE/BEFORE then it's broken as well. Can't look at this atm, but will when I have time, if no one else gets to it first. Doug On 3/11/2012 5:50 PM, Mark Linimon wrote: > this may need review by the rc@ team. I will admit to not understanding > the security issues that may be involved in this PR. > > mcl > > ----- Forwarded message from linimon@FreeBSD.org ----- > > Date: Mon, 12 Mar 2012 00:47:46 GMT > From: linimon@FreeBSD.org > To: linimon@FreeBSD.org, freebsd-ports-bugs@FreeBSD.org, lev@FreeBSD.org > Cc: > Subject: Re: ports/165928: graphics/sane-backends, > devel/subversion rc scripts affecting rcorder in base > > Old Synopsis: sane-backends, subversion rc scripts affecting rcorder in base > New Synopsis: graphics/sane-backends, devel/subversion rc scripts affecting rcorder in base -- This .signature sanitized for your protection From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 07:29:32 2012 Return-Path: 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 515211065670; Mon, 12 Mar 2012 07:29:32 +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 24C128FC0A; Mon, 12 Mar 2012 07:29:32 +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 q2C7TW5l056123; Mon, 12 Mar 2012 07:29:32 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2C7TWTL056119; Mon, 12 Mar 2012 07:29:32 GMT (envelope-from linimon) Date: Mon, 12 Mar 2012 07:29:32 GMT Message-Id: <201203120729.q2C7TWTL056119@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: bin/165477: [rc] dhclient is run twice 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, 12 Mar 2012 07:29:32 -0000 Synopsis: [rc] dhclient is run twice Responsible-Changed-From-To: freebsd-bugs->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Mon Mar 12 07:29:12 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=165477 From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 11:07: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 6691F106566C for ; Mon, 12 Mar 2012 11:07:20 +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 540EF8FC12 for ; Mon, 12 Mar 2012 11:07:20 +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 q2CB7KEq072452 for ; Mon, 12 Mar 2012 11:07:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CB7JWX072449 for freebsd-rc@FreeBSD.org; Mon, 12 Mar 2012 11:07:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Mar 2012 11:07:19 GMT Message-Id: <201203121107.q2CB7JWX072449@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, 12 Mar 2012 11:07:20 -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 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 90 problems total. From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 11:27:32 2012 Return-Path: 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 88B761065675; Mon, 12 Mar 2012 11:27:32 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 607468FC23; Mon, 12 Mar 2012 11:27:32 +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 q2CBRWhB093571; Mon, 12 Mar 2012 11:27:32 GMT (envelope-from bz@freefall.freebsd.org) Received: (from bz@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CBRWNs093567; Mon, 12 Mar 2012 11:27:32 GMT (envelope-from bz) Date: Mon, 12 Mar 2012 11:27:32 GMT Message-Id: <201203121127.q2CBRWNs093567@freefall.freebsd.org> To: bz@FreeBSD.org, freebsd-jail@FreeBSD.org, freebsd-rc@FreeBSD.org From: bz@FreeBSD.org Cc: Subject: Re: kern/165769: [rc][jai][ipv6] IPv6 Initialization on external iface is too slow for jail 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, 12 Mar 2012 11:27:32 -0000 Old Synopsis: [jail] IPv6 Initialization on external iface is too slow for jail New Synopsis: [rc][jai][ipv6] IPv6 Initialization on external iface is too slow for jail Responsible-Changed-From-To: freebsd-jail->freebsd-rc Responsible-Changed-By: bz Responsible-Changed-When: Mon Mar 12 11:25:37 UTC 2012 Responsible-Changed-Why: /etc/rc.d/netwait needs to learn about IPv6. This has nothing to do with jails, just with interfaces, possibly switch ports and spanning tree. http://www.freebsd.org/cgi/query-pr.cgi?pr=165769 From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 12:01:49 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 D920B1065672 for ; Mon, 12 Mar 2012 12:01:49 +0000 (UTC) (envelope-from olevole@olevole.ru) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 63F568FC16 for ; Mon, 12 Mar 2012 12:01:49 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so3515127bkc.13 for ; Mon, 12 Mar 2012 05:01:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=xjsW1oDbR7Z1gAkRya3RUKXjx5elkBU5IJl5psn+nH8=; b=ottduyMiq/AWOOwSN36ZLo4LYNG2qlE0MD/3ClD437Gw+du7rYN7BUqiQBAEItq2aK kyaMN0AobrWfMoDDE+GVD6IXRDGLI5xOUj31UdJ4lR1G2T4x6+myefBplOBoLnVZ/nb8 uRYPIGr3XDGAd/t18MtJjWL0P2+sJeLO4mOtnUbsu8rrZNeV0XG5stc1lplANf7Ib0Bu 7RXg3qqirYPRgsm6OeyJGZBrMmBpF4JjeNNj25a4ZMViuCBplKc4nwrqTSlt3HxMnlst Pl3JSqk9j7tKaejkX0Cu1M2RLbT94fJXlPqE49kA9Pa/+I4FZ2ImYT3l1aWR1Csyht6z 3/Tw== Received: by 10.204.153.219 with SMTP id l27mr4861171bkw.126.1331553708135; Mon, 12 Mar 2012 05:01:48 -0700 (PDT) Received: from gizmo.nevosoft.local ([195.182.128.54]) by mx.google.com with ESMTPS id o7sm24754604bkw.16.2012.03.12.05.01.46 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Mar 2012 05:01:47 -0700 (PDT) From: Oleg Ginzburg To: freebsd-jail@freebsd.org Date: Mon, 12 Mar 2012 16:01:45 +0400 User-Agent: KMail/1.13.7 (FreeBSD/10.0-CURRENT; KDE/4.7.4; amd64; ; ) References: <201203121127.q2CBRWNs093567@freefall.freebsd.org> In-Reply-To: <201203121127.q2CBRWNs093567@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201203121601.45108.olevole@olevole.ru> X-Gm-Message-State: ALoCoQle4VnbzPp0BDb91DXtgL3qXyoSMDM3N4bX8q2b35EWX547yCELAasCI3CUqMVryrmShK0M Cc: bz@freebsd.org, freebsd-rc@freebsd.org Subject: Re: kern/165769: [rc][jai][ipv6] IPv6 Initialization on external iface is too slow for jail 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, 12 Mar 2012 12:01:49 -0000 =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5, On Monday 12 March 2012 15:27:32 bz@freebsd.org wrote: > This has nothing to do with jails, just with interfaces, possibly > switch ports and spanning tree. /etc/rc.d/netwait the script concerns only in a case "complete"-type jail, = not=20 for "service"-type as is written in my example From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 12:30:15 2012 Return-Path: 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 45FB61065672 for ; Mon, 12 Mar 2012 12:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 34AD18FC14 for ; Mon, 12 Mar 2012 12:30:15 +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 q2CCUFnS051945 for ; Mon, 12 Mar 2012 12:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CCUFuk051942; Mon, 12 Mar 2012 12:30:15 GMT (envelope-from gnats) Date: Mon, 12 Mar 2012 12:30:15 GMT Message-Id: <201203121230.q2CCUFuk051942@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: "Bjoern A. Zeeb" Cc: Subject: Re: kern/165769: [rc][jai][ipv6] IPv6 Initialization on external iface is too slow for jail X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Bjoern A. Zeeb" 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, 12 Mar 2012 12:30:15 -0000 The following reply was made to PR kern/165769; it has been noted by GNATS. From: "Bjoern A. Zeeb" To: Oleg Ginzburg , bug-followup@FreeBSD.org Cc: freebsd-jail Subject: Re: kern/165769: [rc][jai][ipv6] IPv6 Initialization on external iface is too slow for jail Date: Mon, 12 Mar 2012 12:21:01 +0000 On 12. Mar 2012, at 12:01 , Oleg Ginzburg wrote: > =D0=97=D0=B4=D1=80=D0=B0=D0=B2=D1=81=D1=82=D0=B2=D1=83=D0=B9=D1=82=D0=B5= , >=20 > On Monday 12 March 2012 15:27:32 bz@freebsd.org wrote: >> This has nothing to do with jails, just with interfaces, possibly >> switch ports and spanning tree. >=20 > /etc/rc.d/netwait the script concerns only in a case "complete"-type = jail, not=20 > for "service"-type as is written in my example I don't see a difference but I see what you mean with "on start" which I = treated as "on boot". The answer unfortunately is - DAD is not supposed to take = that long that it would matter, so the NIC drivers are probably silly or are = required to do silly things. I wonder if you might even see a DOWN/UP cycle. The workaround you can apply is to use the prestart option to the jail = to add that sleep 1 you need and let the startup script configure the IP addresses = for you. See jail_exec_prestart in man 5 rc.conf. /bz --=20 Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do! From owner-freebsd-rc@FreeBSD.ORG Mon Mar 12 14:40:07 2012 Return-Path: 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 ED14D106564A for ; Mon, 12 Mar 2012 14:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D66B78FC14 for ; Mon, 12 Mar 2012 14:40:07 +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 q2CEe7nA074987 for ; Mon, 12 Mar 2012 14:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CEe7a0074986; Mon, 12 Mar 2012 14:40:07 GMT (envelope-from gnats) Date: Mon, 12 Mar 2012 14:40:07 GMT Message-Id: <201203121440.q2CEe7a0074986@freefall.freebsd.org> To: freebsd-rc@FreeBSD.org From: Ian Lepore Cc: Subject: Re: bin/165477: [rc] dhclient is run twice X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ian Lepore 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, 12 Mar 2012 14:40:08 -0000 The following reply was made to PR bin/165477; it has been noted by GNATS. From: Ian Lepore To: bug-followup@FreeBSD.org, wblock@FreeBSD.org Cc: Subject: Re: bin/165477: [rc] dhclient is run twice Date: Mon, 12 Mar 2012 08:31:24 -0600 I did some investigation of this when the question first came up on the mailing lists. Here's what I learned... The first instance of dhclient is started normally by rc.d/dhclient. Later, when devd starts, it processes a bach of bufferered up events delivered to it by devfs, and one of those events is a LINK_UP event which causes devd to run "rc.d/dhclient quietstart". Changes introduced in r226345, merged to 8-stable in r231278, changed the behavior of dhclient with the "quietstart" parameter so that it is no longer quiet about the fact that an instance of dhclient is already running. From owner-freebsd-rc@FreeBSD.ORG Thu Mar 15 18:10:59 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 4D1371065675 for ; Thu, 15 Mar 2012 18:10:59 +0000 (UTC) (envelope-from bsd-src@helfman.org) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 13D198FC0A for ; Thu, 15 Mar 2012 18:10:57 +0000 (UTC) Received: by dald2 with SMTP id d2so5024883dal.13 for ; Thu, 15 Mar 2012 11:10:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:x-operating-system:organization :x-living-the-dream:x-pgp-fingerprint:x-pgp-key:user-agent :x-gm-message-state; bh=sjN5qJfXrMQhRHoBhlG2HUZc6A7SLsK7pO0ZVCEkUWM=; b=kw5FSqThMGtE1MqAYYsekmLIgi14EYVwUVzFZCGmj2jVswoF/C/Kd6LlzsIrcaZjSG QIvzSz3GnnLsJrIndGeARzW5pk6SzaY+eSuXnBXYX8g2BQF2drh4lJTeWiya9njXAlPc qEpEJS8usWC9AVk+nPNwVl28Pb3lnH28S8SYI+7SqGxAHEpdXB4zye3eyyCHDB9v0C/5 artV9xBfeggL6etAw02OjKwzqiJI9qo1ry+rEQU8M7ld+FfUL0mAEyk2BiRT/Qe0Ui5V 2r20G8NwcLxneTvrW+U+osKZpR8S0cFd+lciLnUfaY0/Ty8mTHqOmobURd26gQ3FV7o4 FiyQ== Received: by 10.68.219.41 with SMTP id pl9mr6630436pbc.122.1331835051598; Thu, 15 Mar 2012 11:10:51 -0700 (PDT) Received: from dormouse.experts-exchange.com ([72.29.164.238]) by mx.google.com with ESMTPS id m7sm2378711pba.30.2012.03.15.11.10.50 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Mar 2012 11:10:50 -0700 (PDT) Sender: Jason Helfman Date: Thu, 15 Mar 2012 11:10:01 -0700 From: Jason Helfman To: freebsd-rc@freebsd.org Message-ID: <20120315181001.GA44984@dormouse.experts-exchange.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline X-Operating-System: FreeBSD 8.2-RELEASE amd64 Organization: The FreeBSD Project, http://www.freebsd.org X-Living-The-Dream: I love the SLO Life! X-PGP-FingerPrint: 8E0D C457 9A0F C91C 23F3 0454 2059 9A63 4150 D3DC X-PGP-Key: http://people.freebsd.org/~jgh/jgh.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQmGtwsu5gfHMb4vgw+U6Em7CMcKnVTaZ/xffNJRrilLRu8ZFCD39aztMjtavOYyCcJrYOK8 Cc: dougb@freebsd.org Subject: resin rc script X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Mar 2012 18:10:59 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Hi, It was requested that I revamp www/resin3 rc script. Here is my patch. I tried to set command_interpreter= python, but it passed a warning on start: /usr/local/etc/rc.d/resin3: WARNING: no shebang line in /usr/local/openjdk6/bin/java Starting resin3. APP_NAME is a standardly used variable for java related programs, that ends up being reused throughout the port in various files. In this case, APP_NAME becomes resin3 Thanks, Jason -- Jason Helfman | FreeBSD Committer jgh@FreeBSD.org | http://people.freebsd.org/~jgh --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="resin.txt" ? work Index: Makefile =================================================================== RCS file: /home/pcvs/ports/www/resin3/Makefile,v retrieving revision 1.46 diff -u -r1.46 Makefile --- Makefile 14 Mar 2012 18:09:37 -0000 1.46 +++ Makefile 15 Mar 2012 18:06:35 -0000 @@ -7,6 +7,7 @@ PORTNAME= resin PORTVERSION= 3.1.12 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= http://www.caucho.com/download/ @@ -44,7 +45,7 @@ # Other settings APXS?= ${LOCALBASE}/sbin/apxs SUB_FILES= pkg-message resin3ctl -USE_RC_SUBR= resin3.sh +USE_RC_SUBR= resin3 .include Index: files/resin3.in =================================================================== RCS file: files/resin3.in diff -N files/resin3.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/resin3.in 15 Mar 2012 18:06:35 -0000 @@ -0,0 +1,43 @@ +#!/bin/sh +# +# $FreeBSD: ports/www/resin3/files/resin3.sh.in,v 1.1 2012/03/13 16:29:23 jgh Exp $ +# + +# PROVIDE: %%APP_NAME%% +# REQUIRE: LOGIN NETWORKING SERVERS +# BEFORE: DAEMON +# KEYWORD: shutdown + +# +# Add the following line to /etc/rc.conf to enable %%APP_NAME%%: +# +# %%APP_NAME%%_enable="YES" +# + + +%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"} +%%APP_NAME%%_user=${%%APP_NAME%%_user:-"%%USERS%%"} +%%APP_NAME%%_group=${%%APP_NAME%%_group:-"%%GROUPS%%"} + +. /etc/rc.subr + +name=%%APP_NAME%% +rcvar=%%APP_NAME%%_enable + +load_rc_config ${name} + +command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" +command_args="start" +pidfile=%%PID_FILE%% + +if test -n "${%%APP_NAME%%_java_version}" ; then + JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2) + procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2) +else + JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2) + procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2) +fi + +export JAVA_HOME + +run_rc_command "$1" Index: files/resin3.sh.in =================================================================== RCS file: files/resin3.sh.in diff -N files/resin3.sh.in --- files/resin3.sh.in 13 Mar 2012 16:29:23 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,43 +0,0 @@ -#!/bin/sh -# -# $FreeBSD: ports/www/resin3/files/resin3.sh.in,v 1.1 2012/03/13 16:29:23 jgh Exp $ -# - -# PROVIDE: %%APP_NAME%% -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following line to /etc/rc.conf to enable %%APP_NAME%%: -# -# %%APP_NAME%%_enable="YES" -# - -. /etc/rc.subr - -name=%%APP_NAME%% -rcvar=%%APP_NAME%%_enable - -command="%%PREFIX%%/sbin/%%APP_NAME%%ctl" -command_args="start" -pidfile=%%PID_FILE%% - -# set defaults - -%%APP_NAME%%_enable=${%%APP_NAME%%_enable:-"NO"} -%%APP_NAME%%_user=${%%APP_NAME%%_user:-"%%USERS%%"} -%%APP_NAME%%_group=${%%APP_NAME%%_group:-"%%GROUPS%%"} - -load_rc_config ${name} - -if test -n "${%%APP_NAME%%_java_version}" ; then - JAVA_HOME=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2) - procname=$(JAVA_VERSION="${%%APP_NAME%%_java_version}" JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2) -else - JAVA_HOME=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVA_HOME | cut -d= -f2) - procname=$(JAVAVM_DRYRUN=1 %%LOCALBASE%%/bin/java | grep JAVAVM_PROG | cut -d= -f2) -fi - -export JAVA_HOME - -run_rc_command "$1" --+HP7ph2BbKc20aGI-- From owner-freebsd-rc@FreeBSD.ORG Sat Mar 17 04:37:10 2012 Return-Path: Delivered-To: freebsd-rc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB378106564A; Sat, 17 Mar 2012 04:37:10 +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 92B868FC0C; Sat, 17 Mar 2012 04:37:10 +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 q2H4bAg8097351; Sat, 17 Mar 2012 04:37:10 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2H4bADr097346; Sat, 17 Mar 2012 04:37:10 GMT (envelope-from linimon) Date: Sat, 17 Mar 2012 04:37:10 GMT Message-Id: <201203170437.q2H4bADr097346@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: conf/166126: [patch] allow the PID file of rc.d/bsnmpd to be overridden 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, 17 Mar 2012 04:37:10 -0000 Old Synopsis: About the PID file of bsnmpd New Synopsis: [patch] allow the PID file of rc.d/bsnmpd to be overridden Responsible-Changed-From-To: freebsd-amd64->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Sat Mar 17 04:36:08 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=166126 From owner-freebsd-rc@FreeBSD.ORG Sat Mar 17 04:43:21 2012 Return-Path: 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 E4AFC106566B; Sat, 17 Mar 2012 04:43:21 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BC7B28FC1B; Sat, 17 Mar 2012 04:43: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 q2H4hLjR006114; Sat, 17 Mar 2012 04:43:21 GMT (envelope-from dougb@freefall.freebsd.org) Received: (from dougb@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2H4hLNq006110; Sat, 17 Mar 2012 04:43:21 GMT (envelope-from dougb) Date: Sat, 17 Mar 2012 04:43:21 GMT Message-Id: <201203170443.q2H4hLNq006110@freefall.freebsd.org> To: gab@n.email.ne.jp, dougb@FreeBSD.org, freebsd-rc@FreeBSD.org From: dougb@FreeBSD.org Cc: Subject: Re: conf/166126: [patch] allow the PID file of rc.d/bsnmpd to be overridden 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, 17 Mar 2012 04:43:22 -0000 Synopsis: [patch] allow the PID file of rc.d/bsnmpd to be overridden State-Changed-From-To: open->analyzed State-Changed-By: dougb State-Changed-When: Sat Mar 17 04:41:22 UTC 2012 State-Changed-Why: I'm sorry, it's not clear to me what problem you're trying to solve. Are there situations where multiple services can be started that are all trying to use the same pidfile? If that's the case, and one service is from ports, and the other is from the base, then it's the ports rc.d script that should change. If you can provide more information I'll look into this more closely. Doug http://www.freebsd.org/cgi/query-pr.cgi?pr=166126