Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Apr 2018 23:41:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 227218] databases/mongodb32: Adapt ${name}_limits to the new resource limiting mechanics for services
Message-ID:  <bug-227218-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227218

            Bug ID: 227218
           Summary: databases/mongodb32: Adapt ${name}_limits to the new
                    resource limiting mechanics for services
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: regression
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: 0mp@FreeBSD.org
                CC: brendan+freebsd@bbqsrc.net
            Blocks: 227205
                CC: brendan+freebsd@bbqsrc.net
             Flags: maintainer-feedback?(brendan+freebsd@bbqsrc.net)
 Attachment #192132 maintainer-approval?
             Flags:
             Flags: maintainer-feedback?

Created attachment 192132
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D192132&action=
=3Dedit
Patch adding support for the new ${name}_limits mechanics (databases/mongod=
b32)

Thanks to the recent change to rc.subr(8) it is no longer necessary to
define a resource limiting logic in service scripts. limits(1) is now run
by default and its configuration is handled via the "${name}_limits"
variable.

Unfortunately, there is a collision of variable names. The service
scripts are broken on FreeBSD version with that new change (12.0-CURRENT,
11-STABLE and soon 11.2-RELEASE). It has been reported and diagnosed here.[=
2]

I'm submitting a patch fixing the service script for this port. A similar p=
atch
has already been accepted by a maintainer of another database port.[2]

The patch preserves the old behavior on the systems without the
modification.

It would be great if you could review the patch and test it. :)

[1]: https://svnweb.freebsd.org/base?view=3Drevision&revision=3Dr328331
[2]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226907


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227205
[Bug 227205] Adapting the "${name}_limits" variable of various database ser=
vice
scripts to the recent changes in rc.subr (r328331)
--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227218-13>