Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537444 - local.{start,stop} no longer display stdout from scripts
Summary: local.{start,stop} no longer display stdout from scripts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: openrc-0.14
  Show dependency tree
 
Reported: 2015-01-23 13:13 UTC by gbugs
Modified: 2015-02-18 16:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-local.patch (fix-local.patch,971 bytes, patch)
2015-01-25 22:23 UTC, William Hubbs
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.