From 6965d85f2efb4e1d7b37e04af890b715091fe3d9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 31 Oct 2013 16:04:19 -0500 Subject: Fix the service-level rc_verbose setting This commit fixes the rc_verbose setting so that it is honored if it is set for an individual service. Thanks to whissi@whissi.de for the original patch; this one is slightly modified to be more posix. X-Gentoo-Bug: 489358 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=489358 --- sh/runscript.sh.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index f8fcbc5..ceb9ab4 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -208,6 +208,12 @@ sourcex -e "@SYSCONFDIR@/rc.conf" # Apply any ulimit defined [ -n "${rc_ulimit:-$RC_ULIMIT}" ] && ulimit ${rc_ulimit:-$RC_ULIMIT} +# Set verbose mode +if yesno "${rc_verbose:-$RC_VERBOSE}"; then + EINFO_VERBOSE=yes + export EINFO_VERBOSE +fi + # Apply cgroups settings if defined if [ "$(command -v cgroup_add_service)" = "cgroup_add_service" ]; then cgroup_add_service /sys/fs/cgroup/openrc -- cgit v1.2.3