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

Bug 367793

Summary: [TRACKER] packages with scripts that are not openrc compatible
Product: Gentoo Hosted Projects Reporter: Robert Trace <bugzilla-gentoo>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: UNCONFIRMED ---    
Severity: major CC: nikoli
Priority: Normal Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on: 367815, 367817, 367819, 367821, 376817    
Bug Blocks:    
Attachments: old init script

Description Robert Trace 2011-05-17 18:36:33 UTC
Under baselayout-1 initscripts could explicitly call svc_start/svc_stop to manipulate themselves.  These functions don't appear to exist in openrc/baselayout-2 yet several initscripts still use them.

Reproducible: Always

I'm opening this as a probe/tracker.  This seems to be something that needs fixing (either by restoring the functionality, or removing/updating the initscripts).  If it's deemed a legit bug, I'll open extra bugs to detail the specific initscripts that I know of.

Additionally, is there any good documentation on what functions/variables an initscript has access to and how to structure them?  I found [1] and [2], but there aren't any gooey details in there.  I did finally find bug 348724, comment 5, but that's only part of the solution.

Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-17 20:42:34 UTC
What packages need updating?
Comment 2 Robert Trace 2011-05-17 20:46:55 UTC
So far I've found iptables, acct and fail2ban.  There may be more.  I've got patches for those three cooking right now.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-17 20:53:11 UTC
Ah, yes. Those define a custom restart() function. Bug 348724 is the documentation bug but this one could be for issues in the tree. I suggest opening new bugs for those packages (but remember to search first).
Comment 4 William Hubbs gentoo-dev 2011-05-19 14:33:11 UTC
Another resource for making scripts openrc compatible is man runscript.
Comment 5 Eugeny Shkrigunov 2011-09-23 05:25:11 UTC
This packages too:
Comment 6 Rupert Mazzucco 2011-11-28 20:59:47 UTC
Created attachment 294101 [details]
old init script


doesn't seem to have a proper init script. I was using $attached,
but that stopped working with the new openrc system.
Comment 7 SpanKY gentoo-dev 2011-11-29 15:35:08 UTC
(In reply to comment #6)

that has never been a valid Gentoo init script