LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-15-2005, 09:03 AM   #1
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Rep: Reputation: 30
editing starup programs


hey, i've been having a lot of trouble trying to figure out how to say what programs can and cant start at start up. I've been looking for my init.d files and I found copies of it in /etc/ and in /etc/rc.d but the files are completly empty. Does this mean no programs start at start up or that im looking at the wrong files. Im using mandriva 2005 by the way.

I was also told to look for the xinetd daemon config file(although im not even sure what the xinetd daemon is) and its the same story for that. I've found xinetd.d but its empty. Can anyone help?

Thanks,
NNP
 
Old 05-15-2005, 09:29 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok... what "files" are empty? the services are ones like /etc/init.d/apache, always in init.d on mandrake. xinetd will be in there too. basically Xinetd is a sub-server for any tiiiny little service that doesn't deserve it's own full blown service. files in /etc/rc3.d/ (non-X boot) and /etc/rc5.d (X boot) are symbolically named links to the real files in init.d and nothing more.
 
Old 05-15-2005, 09:52 AM   #3
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Never mind i thought init.d was a text file that contained links to the files that are supposed to be started. What is the best way to add/remove files from init.d? Are they just symbolic links or the actual program? The reason i want to know is that for some reason postfix is running on port 25 and i see no reason for it to be and i want to get rid of it.

Thanks,

NNP

Last edited by NNP; 05-15-2005 at 10:26 AM.
 
Old 05-15-2005, 09:58 AM   #4
NNP
Member
 
Registered: Nov 2004
Distribution: Debian/Ubuntu
Posts: 156

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
files in /etc/rc3.d/ (non-X boot) and /etc/rc5.d (X boot) are symbolically named links to the real files in init.d and nothing more.
So whats the point of them?
 
Old 05-15-2005, 11:10 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
they control which scripts are actually run at each runlevel rc1.d to rc5.d

"S80sendmail" = startup sendmail in 80th place
"S08iptables" = start iptables in 8th place
"K15gpmd" = stop concsole mouse in 15th place.

different runlevels = different kinds of bootup.

the actual files in init.d are control scripts, they are not the programs. you would need to write your own if you want that functionality. just open one up and see what it does...
 
Old 05-15-2005, 01:27 PM   #6
mike33
Member
 
Registered: Jul 2004
Location: Houston Tx
Distribution: kubuntu, Debian, Suse 10.2
Posts: 31

Rep: Reputation: 15
NNP,
One way to prevent a service like postfix from starting is to delete the corresponding link from
/etc/rc3.d and /etc/rc5.d. First make backup copies of these directories, named say /etc/rc3.d.orig and /etc/rc5.d.orig. Then delete from /etc/rc3.d and /etc/rc5.d the symbolic links of any service that you don't want started at bootup; in your case you can delete the links
@S80postfix. You should not delete any of the scripts in /etc/init.d. If later you do want to start postfix at boot, then simply copy the link back to /etc/rc3.d and /etc/rc5.d from the saved original directories. This only affects which services are started at boot time; so long as the scripts in /etc/init.d are not deleted then you can start a service at any time, for example with the command /etc/init.d/postfix start.

Or, instead of the manual method described above you can use the mandriva control tool. As root run the command drakconf (or select control center from the menu).

Last edited by mike33; 05-15-2005 at 01:38 PM.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Editing Programs dudeman41465 Linux - Software 4 06-30-2005 03:14 PM
Photo Editing and Layout programs? Rundi Linux - Software 4 01-15-2005 07:12 PM
slax starup music Maver Linux - Distributions 5 06-26-2004 11:05 AM
Newspaper editing programs for Linux? silverjuggler Linux - Software 3 04-21-2004 05:38 PM
editing file types and programs kevinlyfellow Red Hat 1 03-03-2004 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration