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

Bug 399165

Summary: sys-apps/openrc-0.9.4: bug in sh/runscript.sh impairs start-stop-daemon backgrounding
Product: Gentoo Hosted Projects Reporter: Giampaolo Tomassoni <giampaolo>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=9c0edc5
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 399185    
Attachments: A patch for the above-mentioned problem

Description Giampaolo Tomassoni 2012-01-17 12:43:18 UTC
An init script can't rely on the command_background=true setting in order to instruct the default start() function to start and background a daemon.

This is because that start() function invokes start-stop-daemon with:

 --background --pidfile

instead of:

 --background --make-pidfile

Reproducible: Always
Comment 1 Giampaolo Tomassoni 2012-01-17 12:44:11 UTC
Created attachment 299147 [details, diff]
A patch for the above-mentioned problem
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2012-01-17 14:19:18 UTC
The highlighted issue is still present in HEAD, fyi.
Comment 3 Christian Ruppert (idl0r) gentoo-dev 2012-01-17 17:28:46 UTC
Fixed in Git, see http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=9c0edc5

Please take a look at the commitdiff/description as well :)
Thanks!
Comment 4 William Hubbs gentoo-dev 2012-01-17 18:11:02 UTC
Closing since this is in git.