LinuxQuestions.org
Review your favorite Linux distribution.
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 07-11-2003, 09:46 AM   #1
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Question Quick question


Which file do I need to edit to stop/start things loading on boot (eg. sendmail, sshd, httpd, etc)?

Thanx.
 
Old 07-11-2003, 10:00 AM   #2
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
depends on your distro, but most go along the lines of symlinks under /etc/init.d/rcX.d where X is the runlevel you boot to (probably 5)

under this directory, you'll see links like S71httpd or K12kudzu with point to the start program for httpd and the kill command for kudzu.

If you need to start something new, add a new simlink.
If you don't want something to run, remove the simlink.
If you need to explicitly stop something from running (that may already be running), then make a simlink like the 'K' link above.

do ls -l /etc/init.d/rc5.d to see examples of these links
 
Old 07-11-2003, 10:23 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
I'm using Red Hat 8.0. I have neither rc3.d or rc5.d in /etc/init.d.

$ ls
anacron functions kdcrotate network portmap sendmail syslog
apmd gpm keytable nfs postfix single webmin
atd halt killall nfslock random smb winbind
autofs iptables kudzu nscd rawdevices snmpd xfs
crond irda lpd ntpd rhnsd snmptrapd xinetd
firstboot isdn netfs pcmcia saslauthd sshd ypbind


Those files are all 'shell script' type and not 'link to shell script' (thank you Nautilus).
 
Old 07-11-2003, 10:27 AM   #4
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
login as root, run setup, go to system services, [un]select the services you want...
 
Old 07-12-2003, 02:55 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Did that but those servers are still starting :/.
 
Old 07-12-2003, 05:08 PM   #6
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Use the commands 'chkconfig' and 'service'.

If you want to see all the available services and on which runlevel they are on or off, use the following command.

chkconfig --list

To active or deactivate a service.
chkconfig --level <levels> <service_name> <on|off>

xinetd services work in a different way. There are located in /etc/xinetd.d

In order to disable xinetd service, edit the conf file of the service by changing 'disable = no' to 'disable = yes'
Then restart xinetd
 
Old 07-13-2003, 01:51 AM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by Mathieu
Use the commands 'chkconfig' and 'service'.
$ chkconfig
-bash: chkconfig: command not found

$ service
-bash: service: command not found

ARGHHHHHHHHHHHHHHHHHHHH. Thanx anyway.
 
Old 07-13-2003, 03:06 PM   #8
dav1x
Member
 
Registered: Sep 2002
Posts: 50

Rep: Reputation: 15
when you su use the -l switch to add the path...

otherwise

/sbin/chkconfig --list | less

/sbin/service...


or export PATH="/sbin:/$PATH"

Pick your poison!
 
Old 07-13-2003, 03:25 PM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by dav1x
or export PATH="/sbin:/$PATH"
Was thinking along those lines but couldn't remember the exact syntax. Thanx.
 
  


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
quick question Squall__99 Mandriva 3 06-01-2005 03:13 PM
Quick Question? hydraspective Linux - Hardware 1 12-14-2004 11:51 PM
Question Concerning ISO's and one quick question. evrae Linux - Software 2 06-21-2004 03:53 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Question Westquote Linux - General 1 01-21-2002 09:37 AM

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

All times are GMT -5. The time now is 03:59 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