Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367793 - [TRACKER] packages with scripts that are not openrc compatible
Summary: [TRACKER] packages with scripts that are not openrc compatible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 367815 367817 367819 367821 376817
Blocks:
  Show dependency tree
 
Reported: 2011-05-17 18:36 UTC by Robert Trace
Modified: 2022-11-12 02:30 UTC (History)
1 user (show)

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


Attachments
old init script (dnscache,1.52 KB, text/plain)
2011-11-28 20:59 UTC, Rupert Mazzucco
Details

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

[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4
[2] http://devmanual.gentoo.org/tasks-reference/init-scripts/index.html
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester 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-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:
app-crypt/mit-krb5
net-fs/nfs-utils
net-misc/stunnel
net-misc/tigervnc
Comment 6 Rupert Mazzucco 2011-11-28 20:59:47 UTC
Created attachment 294101 [details]
old init script

net-dns/djbdns

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