LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-04-2004, 04:24 PM   #1
sirpimpsalot
Member
 
Registered: Feb 2004
Posts: 141

Rep: Reputation: 15
loading services/daemons at startup


hello all. very exp with computers/netowrking, but relatively new to linux.

I am trying to gain a firm understanding as to how services or daemons are loaded at system startup. I have googled this topic extensively, and while I can find lots of explanations about each of the specific mechanisms discussed below, I have yet to find a succinct overview of the topic "startup services".

a few questions:

1.first off, I understand that you can either start a service (lets use samba as an example):
- as a daemon
- from init.d
- from xinit.d

can anyone write up a brief explanation of the three options, what the benefits/disatvantages of each are, and how each works. Also, using samba as an example, how would I set samba to start at boot using each option?

2. In my research I seem to keep reading that you can run init.d, or xinit.d, but not both conncurrently. Can someone explain why not? I know xinit.d is newer... why would someone prefer or opt for init.d?


Sidenote: I am using multiple distros right now in an effort to learn as much as possible, and not make my knowledge distro specific.

3. Both fedora and redhat have a program called "service configuration"

http://fedora.redhat.com/projects/co...g-services.png

what exactly is this applet/program editing? if I wanted to make these changes the old fashioned way, how would I go about it?

Any help or information would be greatly appreciated - Im really trying hard to grasp this concept.
 
Old 03-04-2004, 04:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
1 - a daemon is it's own server, inetd (old) / xinetd (new) is a sub server, which can handle a bunch of smaller services, like telnet, which don't necessarily merit thier own full service. see the xinetd manpage for details.

2 - xinetd generally replaced inetd a few years ago, they are essesntially the same thing, but xinetd is more powerful. there is no feasible benefit in running both.

3 - the existance of symlinks in /etc/init.d/rc5.d and similar directories. you can also use intermediate shell apps, like chkconfig.
 
Old 03-05-2004, 04:44 PM   #3
sirpimpsalot
Member
 
Registered: Feb 2004
Posts: 141

Original Poster
Rep: Reputation: 15
anyone have any other input regarding this?
 
Old 03-05-2004, 06:45 PM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Get a copy of Linux from Scratch and read the section about the boot scripts near the end.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some services run in foreground but not as daemons after a crash. 3Dave Slackware 12 12-02-2005 08:19 AM
starting & stopping services/daemons rand0mh3ro Linux - General 4 02-16-2005 08:27 AM
Unnecessary Services/Daemons loaded at boot t3___ Linux - Newbie 1 02-27-2004 05:22 PM
Start Services/Daemons exkor5000 Linux - Newbie 1 11-16-2003 05:00 PM
restarting of services/daemons coopergr Linux - Newbie 3 04-04-2002 08:23 PM


All times are GMT -5. The time now is 07:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration