How to send commands to a service.
Posted by admin on 11 September 2009 10:46 PM
CentOS comes with nicely scripted service commands. The syntax to issue commands to services is as follows:|
# service service_name command
Commands to perform on a service include: start, stop, restart, and status.
So to check on the status of apache, you would issue the following command:
# service httpd status
Similarly, in order to restart it, one would issue:
# service httpd restart