|Summary:||[TRACKER] packages with scripts that are not openrc compatible|
|Product:||Gentoo Hosted Projects||Reporter:||Robert Trace <bugzilla-gentoo>|
|Component:||OpenRC||Assignee:||OpenRC Team <openrc>|
|Package list:||Runtime testing required:||---|
|Bug Depends on:||367815, 367817, 367819, 367821, 376817|
|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  and , 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.  http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4  http://devmanual.gentoo.org/tasks-reference/init-scripts/index.html
Comment 1 Jeremy Olexa (darkside) (RETIRED) 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) 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 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.