Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 537444

Summary: local.{start,stop} no longer display stdout from scripts
Product: Gentoo Hosted Projects Reporter: gbugs
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 520144    
Attachments: fix-local.patch

Description gbugs 2015-01-23 13:13:43 UTC
The scripts I have in /etc/local.d/local.{start,stop} showed their stdout on the screen as they ran in 0.12.4.

Since upgrading to 0.13.8 (and in the short-lived 0.13.7) there was no longer any output from stdout, only that from stderr is shown.

Setting rc_verbose=yes in /etc/conf.d/local or in /etc/rc.conf makes no difference.
Comment 1 William Hubbs gentoo-dev 2015-01-25 22:23:23 UTC
Created attachment 394880 [details, diff]
fix-local.patch

This patch should make /etc/init.d/local output the information from the
scripts if rc_verbose=yes.

Please let me know if it works for you.

Thanks,

William
Comment 2 gbugs 2015-01-26 17:53:41 UTC
Thank you, it works!

I didn't know you could do

redirect='2>&1 > /dev/null'

and then

"${file}" $redirect

I thought you had to use double evaluation -- so I've learnt something into the bargain 8))

Thanks again,

Chris
Comment 3 William Hubbs gentoo-dev 2015-02-18 16:09:43 UTC
This is added in commit 9dfb85d and will be included in 0.14.
Thanks for the report.