Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 want to know, since you're learning linux, it's best to learn what is going on, rather than just doing it and not understanding...
Under redhat/mandrake, "chkconfig" is the tool most commonly used to control what services start up/shut down with the machine.
Linux has different "runlevels" (you can see what runlevel you are in, by typing runlevel at the command prompt). Basically, 2 or 3 is usually multi user mode, and runlevel 6 reboot mode, and runlevel 0 shutdown.
You can do chkconfig --list | more, to see a list of all the services on your machine. It will tell you if that service is set to be "on" or "off" (self explanatory) at that particular runlevel. For example, if in chkconfig --list | more (the | more pipes it to the more command, so you can scroll down using the return key) the smb (samba) service is set to "on" for runlevel 0, it means it will try and shut samba down with the machine. If samba isn't running, then you will get a [FAILED] message on shutdown. So you just do chkconfig --level 0 smb off. to turn smb off for runlevel 0.
To COMPLETELY turn off a service from starting up/shutting down, just do
chkconfig <service> off
Hope this helps, and doesn't confuse you too much!!