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 05-01-2002, 04:05 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 32
chkconfig has spoiled me?


Anyone know about the "chkconfig" utility that comes on my red hat box?

Well, I'm quite accustomed to using it to enable/disable services on startup.

But, I have to setup a server with SuSE 7.0, and it doesn't appear to have this utility. So, what can I do?

For example, if I want to enable httpd, smbd, or sshd on startup, normally I would do a chkconfig command. How would I accomplish this task without chkconfig?
 
Old 05-01-2002, 05:42 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
I think all that chkconfig does is add and remove symlinks in the "/etc/rc.d" subdirectories.

Maybe you can install "chkconfig" on your Suse system.

Last edited by zmedico; 05-01-2002 at 07:42 PM.
 
Old 05-01-2002, 06:54 PM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
I found that if there is no utility to stop/start services I am using command line alone, as follows
/etc/init.d/service start
/etc/init.d/service stop
Substitute service for lpd, portmap, etc.

Last edited by neo77777; 05-01-2002 at 06:56 PM.
 
Old 05-01-2002, 07:20 PM   #4
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
Well, I just deleted the "S" file in the runlevel that I'm in, and now that service doesn't start anymore.

The only problem is if I want it to start again, it's gone, and I'd have to create a new symlink, which I'm not sure I want to be playing around with on a regular basis.

I'm not sure if the service I was concerned about has a /etc/init.d/service stop/start ability. (The service is identd, which I wanted to shut off since it keeps a port open).
 
Old 05-01-2002, 07:32 PM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
The init scripts will only be started if they begin with "S", right? Instead of deleting them, rename the ones you want to disable by prepending a letter (say, "D" for disabled) to the beginning of the script's name. If you want to enable it at a later date, just remove the letter.

Last edited by DMR; 05-01-2002 at 07:34 PM.
 
Old 05-01-2002, 10:02 PM   #6
Jazm
LQ Newbie
 
Registered: Apr 2002
Distribution: RH & SuSE
Posts: 17

Rep: Reputation: 0
I'm not certain of this but I believe SuSE uses YAST to control services.
 
Old 05-03-2002, 03:23 AM   #7
growler
Member
 
Registered: Apr 2002
Posts: 84

Rep: Reputation: 15
Quote:
Originally posted by DMR
The init scripts will only be started if they begin with "S", right? Instead of deleting them, rename the ones you want to disable by prepending a letter (say, "D" for disabled) to the beginning of the script's name. If you want to enable it at a later date, just remove the letter.
S for start, K for kill, usually 'SNNservice' and 'KNNservice' where NN is a number from 00 to 99 - that controls the order in which the services are started or stopped when you switch runlevels.
 
  


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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
Spoiled by Windows, total Linux newbie discussion please HiAmplidude Linux - Newbie 18 09-15-2004 03:42 PM
chkconfig ?? jchin Linux - Newbie 4 10-16-2003 01:59 AM
New to Slack, been spoiled by Mandy, need help Jadasin Slackware 24 04-19-2003 01:59 AM
Help on chkconfig ztopher Linux - Software 0 04-09-2003 03:29 AM

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

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