Starting and stopping services is easy in Red Hat Enterprise Linux 4 and its derivative CentOS 4. Both has the Service Configuration tool for simplifying service administration.

1. Click Applications, select System Settings, select Server Settings and click Services. This will launch the Service Configuration window.

2. In the Service Configuration window, check the service you wish to start on the next system startup, in this case the service postfix. To start the service immediately, press Start.
Unchecked services will not be started on the next system startup. To immediately stop a service, select the service and press Stop.
To restart a service, select the service and press Restart.
You can also do this from the command line, below are the equivalent commands.
- service [name] start
starts the service - service [name] stop
stops the service - service [name] status
displays the service status - chkconfig ––list
displays all the available services - chkconfig ––level 345 [name] on
automatically runs the service on the next startup - chkconfig ––level 345 [name] off
removes the service from the startup list
***
Posted on 3/7/2007 and last updated on 5/31/2008
Filed under CentOS 4 , Red Hat Enterprise Linux 4 , System Administration
Share This

September 25th, 2008 at 8:27 am
[...] 3. MailScanner should now be the one to start the Postfix service. Stop the Postfix service and start the MailScanner service in that order. Learn how to stop and start services here. [...]