Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.