improve the diagnostic when the ulimit builtin fails
X-Gentoo-Bug:739274 X-Gentoo-Bug-URL:https://bugs.gentoo.org/739274
This commit is contained in:
parent
bf9af1fb23
commit
9a6698876a
@ -254,8 +254,11 @@ fi
|
|||||||
for _cmd; do
|
for _cmd; do
|
||||||
if [ "$_cmd" != status -a "$_cmd" != describe ]; then
|
if [ "$_cmd" != status -a "$_cmd" != describe ]; then
|
||||||
# Apply any ulimit defined
|
# Apply any ulimit defined
|
||||||
[ -n "${rc_ulimit:-$RC_ULIMIT}" ] && \
|
if [ -n "${rc_ulimit:-$RC_ULIMIT}" ]; then
|
||||||
ulimit ${rc_ulimit:-$RC_ULIMIT}
|
if ! ulimit ${rc_ulimit:-$RC_ULIMIT}; then
|
||||||
|
eerror "${RC_SVCNAME: unable to apply RC_ULIMIT settings"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
# Apply cgroups settings if defined
|
# Apply cgroups settings if defined
|
||||||
if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]
|
if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user