Created attachment 361886 [details, diff] Honor per service configured verbose mode Hi, like discussed on Thursday, 24th October 2013 in #openrc: 1) You have a service "foo" 2) You want to enable verbose mode for the runscript, but only for service "foo". 3) Like any other rc* option you want to set per service, you would do something like # echo 'rc_verbose="YES"' >> /etc/conf.d/foo If you check for "rc_verbose" in the initscript, it is set to YES like expected, but if your initscript uses any e*-function prefixed with v you won't get your expected output, because the environment variable "EINFO_VERBOSE" is set to "NO": man runscript: > You can prefix the above commands with the letter v, > which means they only output when the environment variable > EINFO_VERBOSE is true. "EINFO_VERBOSE" isn't set to "TRUE", because it will be set by "/sbin/runscript" which only sources "/etc/rc.conf" and no service specific configuration like "/etc/conf.d/<service>{,.<runlevel>}". We fix this using "/lib/rc/sh/runscript.sh", which sources the per service configuration and therefore knows if rc_verbose is set to "YES" and can update "EINFO_VERBOSE".
This is fixed in commit 6965d85 and will be included in OpenRC-0.13.