Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issue (bug?) with need dependency in Init System script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Wed Jul 17, 2002 12:02 pm    Post subject: Issue (bug?) with need dependency in Init System script Reply with quote

The need dependency type don't seam to it's job as said in the online "Gentoo Linux Documentation - Gentoo Linux 1.0 Init System" and in this case (at least) seam to effect the working of courier pop3d.

Documentation says...
Quote:
The NEED dependency type

This is used if a service is critical for the startup of the current service.

(Codelisting 2:... choped)

Note: The services mentioned after NEED are critical in order for the current service to start. The current service will thus fail to start if any of the dependencies fail to start.

Important: Any service in a NEED line will get started even even if it is NOT added to the current or "boot" run level.


/etc/init.d/courier-pop3d have

Code:
depend() {
        need net authdaemond
}


It fails in 2 ways according to documentation,

1. authdaemond never get started if not running when courier-pop3d starts, instead you have to start it manually which I think shouldn't be the case.

2. as authdeamond not start or is running, courier-pop3d should fail to start, but it don't. It starts and any attempt to connect to pop3 generates an auth failure.

I'm not good enough to decide which one is failing, Gentoo Init System or courier-pop3d script, possibly both. So though of hearing here first before supplying a bug report.

/Joakim
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Wed Jul 17, 2002 12:20 pm    Post subject: Reply with quote

I actually updated the courier-imap ebuild to include pop3 and authdaemon init scripts. So, it could be my fault. <shrug>.

Quote:
1. authdaemond never get started if not running when courier-pop3d starts, instead you have to start it manually which I think shouldn't be the case.
2. as authdeamond not start or is running, courier-pop3d should fail to start, but it don't. It starts and any attempt to connect to pop3 generates an auth failure.

Yes, you are correct, on my system and several others I have as expected behavior.

The first thing that comes to my mind is, did you *just* emerge courier-imap? If you did, then the problem is simpe (or should be), simply run /etc/init/depscan.sh. By simply installing a program the init dependencies do not get rebuilt, they get rebuilt at boot time, and whenever you use rc-update. Hopefully this should solve the problem.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Wed Jul 17, 2002 1:28 pm    Post subject: Reply with quote

Quote:
Yes, you are correct, on my system and several others I have as expected behavior.

The first thing that comes to my mind is, did you *just* emerge courier-imap? If you did, then the


Well I emerged and followed the instructions given post install, shouldn't that be *just* enough? :-)

btw, may I take the oportunity here to point out a weakness with portage in current status (if not changed with latest). If you emerge several packages or lets say there is many deps, you only get the "post install" instructions for the latest package emerged in the end screen. I don't know it may be written to disk somewere, but then it should be fairly easy to make a "sum up" in the end of the emerge. Found out this when I didn't get something to work alright and now always check the ebuild script(s) in portage afterwards, but it's a bit awkward...

Quote:
? If you did, then the problem is simpe (or should be), simply run /etc/init/depscan.sh. By simply installing a program the init dependencies do not get rebuilt, they get rebuilt at boot time, and whenever you use rc-update. Hopefully this should solve the problem.


Ok I see my short time with Gentoo still shows off ;-) Although I have had a busy week with it as my Suse 7.2 production server crached last thursday, right after we had that discussion in hardware and I had ordered peices to a new server. So I took the oportunity to plug in the HD with the half done configurated Gentoo system I played with here at home so now I'm fully Gentoonized - havn't had time for the fine details of everything yet though but fighting with getting services back up working again. Regarding reboot, I'm 70km away from my server administrating it remotely with ssh and webmin, so being so new with it a remote reboot is not an option for me right now. But good to know, I will go ther within some time and then I'll find out.

/Joakim
_________________
/Joakim

Living on earth is expensive, but it includes a free trip around the sun
every year.
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Wed Jul 17, 2002 1:45 pm    Post subject: Reply with quote

MoonWalker wrote:

btw, may I take the oportunity here to point out a weakness with portage in current status (if not changed with latest). If you emerge several packages or lets say there is many deps, you only get the "post install" instructions for the latest package emerged in the end screen. I don't know it may be written to disk somewere, but then it should be fairly easy to make a "sum up" in the end of the emerge. Found out this when I didn't get something to work alright and now always check the ebuild script(s) in portage afterwards, but it's a bit awkward...


Yeah, I know. :( We need some logging facilities, they will probably get added after the QA stuff gets finished.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Wed Jul 17, 2002 3:01 pm    Post subject: Reply with quote

MoonWalker wrote:
Well I emerged and followed the instructions given post install, shouldn't that be *just* enough? :-)


Just updated the ebuild to run /etc/init.d/depscan.sh in pkg_postinst just before we print out the little message. Shouldn't be a problem anymore.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum