Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Relationship between start-stop-daemon and xinetd??
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
carlos123
Guru
Guru


Joined: 12 Feb 2003
Posts: 536
Location: Alberta, Canada.

PostPosted: Sun Mar 30, 2003 2:25 am    Post subject: Relationship between start-stop-daemon and xinetd?? Reply with quote

I am trying to understand how Gentoo does things underneath in order to figure out how to work around some package installation and configuration hassles and was wondering...

start-stop-daemon is a script which starts or stops processes from what I can tell. xinetd is a super daemon which listens for calls to the various processes that it is running interference for and starts them also.

Is the start-stop-daemon just Gentoo's version of some super daemon? Does it handle any processes that xinetd would normally handle?

Are there any problems between start-stop-daemon starting a process as opposed to xinetd (or even initd) starting a process? In terms of the process environment getting screwed up somehow if xinetd or initd start up the process?

Any insight on this would be appreciated.

Thanks.

Carlos
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sun Mar 30, 2003 3:00 am    Post subject: Reply with quote

They are totally different things. start-stop-daemon is just a program to make starting and stopping of daemons simpler. The daemons started by it run continuously and bind directly to a network port if they have any networking capability. xinetd is a daemon that runs continously. It listens on whatever ports it is configured for and when it recieves a request starts the associated daemon. It feeds data to the server daemon on standard input and takes the standard output from the daemon and sends it back out to the network. When the communication is over the server shuts down but xinetd keeps runing. xinetd allows you to have multiple servers available without running them all the time. It also allows some added security maesures. You would not want to run a service standalone and through xinetd at the same time. Also some servers, eg. apache, require some configuration change to run through xinetd. And some, such as swat, can only run through xinetd. This all applies to inetd as well. xinetd is just a more advanced version of inetd.
Back to top
View user's profile Send private message
carlos123
Guru
Guru


Joined: 12 Feb 2003
Posts: 536
Location: Alberta, Canada.

PostPosted: Sun Mar 30, 2003 9:03 am    Post subject: Reply with quote

Thanks PowerFactor. Your explanation does help to clear things up for me. I'll keep studying the underlying Gentoo code until I get it for sure.

Carlos
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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