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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-01-2002, 04:05 PM
|
#1
|
|
Member
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510
Rep:
|
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?
|
|
|
|
05-01-2002, 05:42 PM
|
#2
|
|
Member
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707
Rep:
|
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.
|
|
|
|
05-01-2002, 06:54 PM
|
#3
|
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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.
|
|
|
|
05-01-2002, 07:20 PM
|
#4
|
|
Member
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510
Original Poster
Rep:
|
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).
|
|
|
|
05-01-2002, 07:32 PM
|
#5
|
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
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.
|
|
|
|
05-01-2002, 10:02 PM
|
#6
|
|
LQ Newbie
Registered: Apr 2002
Distribution: RH & SuSE
Posts: 17
Rep:
|
I'm not certain of this but I believe SuSE uses YAST to control services.
|
|
|
|
05-03-2002, 03:23 AM
|
#7
|
|
Member
Registered: Apr 2002
Posts: 84
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|