FreeBSD Bugzilla – Attachment 192223 Details for
Bug 227221
databases/arangodb33: Adapt ${name}_limits to the new resource limiting mechanics for services
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding support for the new ${name}_limits mechanics (databases/arangodb33, revision: 1)
arangodb33--r1.diff (text/plain), 2.85 KB, created by
Mateusz Piotrowski
on 2018-04-04 18:08:22 UTC
(
hide
)
Description:
Patch adding support for the new ${name}_limits mechanics (databases/arangodb33, revision: 1)
Filename:
MIME Type:
Creator:
Mateusz Piotrowski
Created:
2018-04-04 18:08:22 UTC
Size:
2.85 KB
patch
obsolete
>diff --git databases/arangodb33/Makefile databases/arangodb33/Makefile >index b4ad91988866..2948ef7c4d72 100644 >--- databases/arangodb33/Makefile >+++ databases/arangodb33/Makefile >@@ -3,6 +3,7 @@ > PORTNAME= arangodb > DISTVERSIONPREFIX= v > DISTVERSION= 3.3.3 >+PORTREVISION= 1 > CATEGORIES= databases net > PKGNAMESUFFIX= 33 > >@@ -30,6 +31,15 @@ USERS= arangodb > GROUPS= arangodb > USE_RC_SUBR= arangod > >+.include <bsd.port.options.mk> >+ >+.if ${OPSYS} != FreeBSD || ${OSVERSION} < 1101514 || \ >+ ${OSVERSION} >= 1200000 && ${OSVERSION} < 1200057 >+SUB_LIST+= LEGACY_LIMITS="" MODERN_LIMITS="@comment " >+.else >+SUB_LIST+= LEGACY_LIMITS="@comment " MODERN_LIMITS="" >+.endif >+ > post-install: > .for section in 1 8 > @${MV} ${STAGEDIR}${PREFIX}/share/man/man${section}/* ${STAGEDIR}${PREFIX}/man/man${section}/ >diff --git databases/arangodb33/files/arangod.in databases/arangodb33/files/arangod.in >index 4edc4bf9a59e..a71bc94b6f90 100644 >--- databases/arangodb33/files/arangod.in >+++ databases/arangodb33/files/arangod.in >@@ -9,13 +9,13 @@ > # > # arangod_enable (bool): Set to "NO" by default. > # Set it to "YES" to enable arangod. >-# arangod_limits (bool): Set to "NO" by default. >-# Set it to yes to run `limits -e -U arangodb` >-# just before arangod starts. >+%%LEGACY_LIMITS%%# arangod_limits (bool): Set to "NO" by default. >+%%LEGACY_LIMITS%%# Set it to yes to run `limits -e -U arangodb` >+%%LEGACY_LIMITS%%# just before arangod starts. > # arangod_dbpath (str): Default to "/var/db/arangodb" > # Base database directory. > # arangod_logpath (str): Default to "/var/log/arangodb" >-# Base logging directory >+# Base logging directory > # arangod_apppath (str): Default to "/var/db/arangodb-apps" > # Base apps directory > # arangod_flags (str): Custom additional arguments to be passed to arangod. >@@ -32,7 +32,7 @@ rcvar=arangod_enable > load_rc_config $name > > : ${arangod_enable="NO"} >-: ${arangod_limits="NO"} >+%%LEGACY_LIMITS%%: ${arangod_limits="NO"} > : ${arangod_dbpath="/var/db/arangodb"} > : ${arangod_logpath="/var/log/arangodb"} > : ${arangod_apppath="/var/db/arangodb-apps"} >@@ -75,11 +75,12 @@ arangod_prestart() > if [ ! -d ${arangod_apppath} ]; then > arangod_create_apppath || return 1 > fi >- if checkyesno arangod_limits; then >- eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null >- else >- return 0 >- fi >+%%LEGACY_LIMITS%% if checkyesno arangod_limits; then >+%%LEGACY_LIMITS%% eval `/usr/bin/limits -e -U ${arangod_user}` 2>/dev/null >+%%LEGACY_LIMITS%% else >+%%LEGACY_LIMITS%% return 0 >+%%LEGACY_LIMITS%% fi >+%%MODERN_LIMITS%% return 0 > } > > run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 227221
:
192135
|
192223
|
192410