quote:
Originally posted by fuckoffmicrosoft:
o man that saved me 15 meg of ram. anything else :eek:
Just some other notes about the "chkconfig" and the "service" commands in RedHat. If a service such as httpd is configured to start in the default runlevel and thus currently running and you issue the command
# chkconfig httpd off
this will "not" stop the service. It just configures your system so it will not start when you boot up. To actually stop a running service you would type:
# service httpd stop
Most services have more parameters than just "start" and "stop". For instance if you type:
# service httpd
alone it will list what other parameters are available like "restart", "reload", etc. For example if you make a change to your Apache configuration (modify the "/etc/httpd/conf/httpd.conf" file) Apache will not recognize the changes until it is restarted or "reloaded". It is best to just issue this command:
# service httpd reload
Which signals apache to reread it's configuration file without actually having to stop and start the service. This is much quicker and your web server will not have a short period of inaccessibility (which would be no more than a couple of seconds).
See "man chkconfig" and "man service" for more information on the commands. And if you want a deeper understanding of what services are, they are nothing more than scripts which reside in the /etc/init.d directory. If you are interested take a look inside each of the scripts and you will see how they work. You will find symbolic links to those scripts in the "/etc/rc0.d", "/etc/rc1.d", ..., "/etc/rc6.d", one directory for each run level. Run level 5 is the default run level if your system boots up to a graphical logon. Run level 3 is the run level you would likely want to use if you want to use the machine as a server and boot to a text based logon prompt. You would change the default run level by modifying the "id:5:initdefault" line in the "/etc/inittab" file to "id:3:initdefault".
[ October 01, 2002: Message edited by: void main ]