Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 399165 - sys-apps/openrc-0.9.4: bug in sh/runscript.sh impairs start-stop-daemon backgrounding
Summary: sys-apps/openrc-0.9.4: bug in sh/runscript.sh impairs start-stop-daemon backg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL: http://git.overlays.gentoo.org/gitweb...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 399185
  Show dependency tree
 
Reported: 2012-01-17 12:43 UTC by Giampaolo Tomassoni
Modified: 2012-01-17 18:13 UTC (History)
0 users

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


Attachments
A patch for the above-mentioned problem (openrc-0.9.4+working-background.patch,530 bytes, patch)
2012-01-17 12:44 UTC, Giampaolo Tomassoni
Details | Diff

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