Plz help on how to add/remove services started at boot time on linux
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
runlevel (tells you the current run level--almost certainly it will be 5)
(you are now looking at a series of LINKS to the startup and shutdown scripts. Each link title begins with "K" for kill, or "S" for start, then a number, then that actual script name. These links get executed in alphabetical order. The actual scripts are in init.d
To stop something from being started at bootup, simply delete the appropriate link
In the rc5.d directory:
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
In Fedora, a simple:
$ chkconfig sendmail off
will turn sendmail off in run levels 3 4 and 5
Also, this will be a persistent change and will not need to be done upon every boot.
The one thing that you will need to do is be able to get to a command prompt to begin with, though. And if your machine is not responding during the boot process, then this could prove to be difficult.
Booting into rescue mode from a CD and then chrooting as MichaelK suggested is one way to get to that command prompt. The other is to boot in to single user mode.
To do that, simply edit the boot line from grub by adding a "1" to the end of the line. That will automatically send you in to single user mode. You can then perform the chkconfig command I have above. Don't forget to edit the boot line by removing the "1" when you reboot, else you'll wind up right back into single user mode again.
thnx a lot guys ...
i was able to disable sendmail succcessfully by using chkconfig utility
but there arose a new problem for me now,after a successful boot after disalbing sendmail i got a blank screen (completely black) n any control hardly worked for a long time
can anybody clarify me regarding this?,is a complete install required??
i don't know what really has happened i have changed my init to 3 via a rescue disk n that worked,i mean i was able to login after a successful boot,then trying "startx" for GUI didn't work n neither there was an error message.So , i changed my init back to 5 n rebooted n to my surprise that was successful,i didn't get what has really happened.
i tried the "top" command n it was giving me some list of processes along with pid's,my bid went in vain while saving its output to a file since the file was later unreadable it had some vague characters
can u plz tell me how can i put up my "top" command's output here n i am sorry for posting a late reply...