It is a process that is started at boot time, and
does nothing (sleeps) until it is needed.
It simply remains in memory until called upon.
This is why you want to be in control of how many
services are running at any given moment.
We have seen how to use chkconfig to control if these
services are turned on or off at boot time, but what if we need to turn
a service on or off during one of our sessions?
Use the service
command.
service <service-name>
start/stop/restart
For example, if you want to stop SSH, use the following
command:
service sshd stop
[root@Hamming rc3.d]# service
sshd stop
Stopping sshd:
[ OK ]
For example, if you wanted to stop and start SSH, you
could use the service
command twice, or you could use the restart option.
[root@Hamming rc3.d]#
service sshd restart
Stopping sshd:
[ OK ]