Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459886 - net-irc/anope - init script should wait for ircd
Summary: net-irc/anope - init script should wait for ircd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-01 15:24 UTC by Raymond Jennings
Modified: 2015-09-07 20:20 UTC (History)
1 user (show)

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


Attachments
patch to initscript for anope (anope.patch,42 bytes, patch)
2015-09-06 05:54 UTC, Raymond Jennings
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Jennings 2013-03-01 15:24:55 UTC
During bootup anope may start before the unrealircd/whatever that it needs to connect to, resulting in failure.

Suggested solution is to have the init script depend on the ircd

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-03-01 17:46:31 UTC
What if the ircd is on another system? Maybe a conf.d variable could help here...
Comment 2 Raymond Jennings 2013-03-01 19:46:32 UTC
Is it even possible for conf.d variables to affect initscript dependencies?

For the time being I hand edited it.
Comment 3 El Goretto 2013-08-20 09:17:27 UTC
I had to edit init script too.
May I suggest to use "use ircd"? It would be better than "need ircd" in case of ircd being on another system like Jeroen said.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4

Easy and fest fix for this issue IMHO.
Comment 4 El Goretto 2015-01-13 16:38:56 UTC
(In reply to El Goretto from comment #3)
> I had to edit init script too.
> May I suggest to use "use ircd"? It would be better than "need ircd" in case
> of ircd being on another system like Jeroen said.
> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
> 
> Easy and fest fix for this issue IMHO.

Any news on this?
Comment 5 Raymond Jennings 2015-09-06 05:54:07 UTC
Created attachment 411110 [details, diff]
patch to initscript for anope

This makes the initscript wait for the ircd before starting anope.

I don't know if it will fail if the ircd isn't running, I'm not an expert in initscripts.
Comment 6 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2015-09-07 20:20:45 UTC
It is fixed in -r2, it has "use ircd" added to the depend() function.
That way, if it is not installed, it will still work (if "after" is used, it will not run if the ircd is not on the same machine)