Re: [CentOS] Processes to disable
Hello, On Thu, Apr 9, 2009 at 10:21, David Lemcoe fo...@lemcoe.com wrote: a bunch of processes that really aren't needed Yes, many processes started in a default installation are not needed, but they are not harmful at all, and in most cases they will not bring you any problems. On the other hand, if you start disabling processes, you might get into trouble and not know exactly why. So, especially if you are *not* a more experienced CentOS user, I would advise you against disabling processes that you do not know if you need or not. As I said, if you don't really need them, they will probably not be harmful to you. and just burn up processes. This is a very silly argument, it's not like you have a low limit of total number of processes in your system, and so far I have never seen anyone reach that limit. Which ones should I get rid of for just a webserver? MySQL server? If you do not plan to run MySQL server on a machine, then yes, you should disable it, but in that case you should not even have installed the RPM package to start with. In that case, the way I would advise you to disable it is to uninstall the RPM. On Thu, Apr 9, 2009 at 16:29, Bogdan Nicolescu bo...@yahoo.com wrote: to disable/enable a service: chkconfig --level levels service-name off/on i.e. chkconfig --level 3 sshd off Disables sshd for levels 3 chkconfig --level 35 sshd on Enables sshd for level 3 and 5 Never use the --level argument unless you have very specific needs. You should use: chkconfig sshd off And: chkconfig sshd on The service initialization files have a list of default runlevels, which will probably make more sense than anything you specify. To see the names of all the services installed on your system: ls /etc/rc.d/init.d Using 'chkconfig --list' makes more sense than listing the init.d directory. HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Processes to disable
- Original Message From: Filipe Brandenburger filbran...@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, April 13, 2009 6:02:32 AM Subject: Re: [CentOS] Processes to disable Hello, On Thu, Apr 9, 2009 at 10:21, David Lemcoe wrote: a bunch of processes that really aren't needed Yes, many processes started in a default installation are not needed, but they are not harmful at all, and in most cases they will not bring you any problems. On the other hand, if you start disabling processes, you might get into trouble and not know exactly why. So, especially if you are *not* a more experienced CentOS user, I would advise you against disabling processes that you do not know if you need or not. As I said, if you don't really need them, they will probably not be harmful to you. and just burn up processes. This is a very silly argument, it's not like you have a low limit of total number of processes in your system, and so far I have never seen anyone reach that limit. Which ones should I get rid of for just a webserver? MySQL server? If you do not plan to run MySQL server on a machine, then yes, you should disable it, but in that case you should not even have installed the RPM package to start with. In that case, the way I would advise you to disable it is to uninstall the RPM. On Thu, Apr 9, 2009 at 16:29, Bogdan Nicolescu wrote: to disable/enable a service: chkconfig --level service-name off/on i.e. chkconfig --level 3 sshd off Disables sshd for levels 3 chkconfig --level 35 sshd on Enables sshd for level 3 and 5 Never use the --level argument unless you have very specific needs. You should use: chkconfig sshd off And: chkconfig sshd on The service initialization files have a list of default runlevels, which will probably make more sense than anything you specify. http://www.phpman.info/index.php/man/chkconfig/8 Maybe the chkconfig man pages can be revised to include Never use the --level argument unless you have very specific needs because The service initialization files have a list of default runlevels, which will probably make more sense than anything you specify. To see the names of all the services installed on your system: ls /etc/rc.d/init.d Using 'chkconfig --list' makes more sense than listing the init.d directory. chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d bn HTH, Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Processes to disable
On Mon, Apr 13, 2009 at 12:03, Bogdan Nicolescu bo...@yahoo.com wrote: To see the names of all the services installed on your system: ls /etc/rc.d/init.d Using 'chkconfig --list' makes more sense than listing the init.d directory. chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d It does list all that were properly registered. If a service is not listed by chkconfig --list, it means it was not registered with chkconfig --add, and it probably means that there was a problem while installing the package. AFAIK, if it does not show in chkconfig --list you will not be able to activate it with 'chkconfig service on' either. Filipe ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Processes to disable
- Original Message From: Filipe Brandenburger filbran...@gmail.com To: CentOS mailing list centos@centos.org Sent: Monday, April 13, 2009 6:29:43 PM Subject: Re: [CentOS] Processes to disable On Mon, Apr 13, 2009 at 12:03, Bogdan Nicolescu wrote: To see the names of all the services installed on your system: ls /etc/rc.d/init.d Using 'chkconfig --list' makes more sense than listing the init.d directory. chkconfig --list doesn't necessarily list all the services in /etc/rc.d/init.d It does list all that were properly registered. If a service is not listed by chkconfig --list, it means it was not registered with chkconfig --add, and it probably means that there was a problem while installing the package. AFAIK, if it does not show in chkconfig --list you will not be able to activate it with 'chkconfig on' either. Filipe Not properly registered with chkconfig doesn't necessarily mean that a service is not installed. service --status-all is probably a better choice inĀ finding the status of all the scripts in init.d, and not just those registered withc chkconfig. bn ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] Processes to disable
I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server? Thanks. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Processes to disable
Hi David, On Thu, Apr 9, 2009 at 3:21 PM, David Lemcoe fo...@lemcoe.com wrote: I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server? Depends on what you've installed and what you need. Serviceconf is a nice way of graphically checking what background and on-demand services are configured for your system and what they are. If you don't need MySQL or Web servers, you should have not installed them from start. :-) -- Hakan (m1fcj) - http://www.hititgunesi.org ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Processes to disable
Thanks for the tool. I have two servers, a just Apache/FTP and a MySQL. I was told that I can basically have NOTHING except for the daemon running, but that seems a little extreme :) Thanks again, David On 4/9/09, Hakan Koseoglu hakan.koseo...@gmail.com wrote: Hi David, On Thu, Apr 9, 2009 at 3:21 PM, David Lemcoe fo...@lemcoe.com wrote: I was told by some more-experienced Cent users that there are a bunch of processes I should kill and get out of the startup folder. He said that Cent (even with a small install) has a bunch of processes that really aren't needed and just burn up processes. Which ones should I get rid of for just a webserver? MySQL server? Depends on what you've installed and what you need. Serviceconf is a nice way of graphically checking what background and on-demand services are configured for your system and what they are. If you don't need MySQL or Web servers, you should have not installed them from start. :-) -- Hakan (m1fcj) - http://www.hititgunesi.org ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos