Hello.
Today, we will talk about how to manage services in county clinics using the system CTL command in
order to start or stop a service, we use a system called command, followed by the start or stop,
then followed by the name of the service.
Let's take an example.
We tried to start our research service.
Let's verify this S.H. service is up and running using the SS or the Net Stat Command, and we will
use the grep utility to filter our output to show only the SS age service.
We used the dash a dash investee, Dash, L and Vesp argument with our command.
Let's open the nets that help and see each of these arguments.
The here, this pale sockets the dash and do not resolve names, if you look here, this is the N.
The Dashti for Tsipi Perkel, the Darcel for displaying listening server sockets only, and finally
the Despard to display the process idea and the program name.
As we can see, the his service is already started, but now let's stop the service.
Now, let's use the same command again and see if we get the same output.
Notice we didn't get the listen line, meaning that the NSA service is not running, also, an easy
and quick way to find if the service is running or not is using the same command with this Tatis argument.
Let's try first and to start the NSA service.
Now, let's check the status of the service.
Notice the green active running indicates that the service is running, let's stop it and check the
status again.
Now it shows that the service is inactive, that.
But let's try the same thing with the Apache service.
Now, if we want this service to run about time, we add the enable or disable argument.
But first, let's see if our as a sage or Apache service is running at Buthayna using the list Desh
unit Dash files argument.
Let's try again, and this time we've got to filter the output to show DSH or Apache's service only.
Notice the Apache to service is disable them, but let's enable it.
Let's check again.
Nice.
It's enabled now.
That was all for this video.
Thank you.
And see you in the next video.