1 00:00:00,210 --> 00:00:00,730 Hello. 2 00:00:01,380 --> 00:00:10,530 Today, we will talk about how to manage services in county clinics using the system CTL command in 3 00:00:10,530 --> 00:00:18,150 order to start or stop a service, we use a system called command, followed by the start or stop, 4 00:00:18,150 --> 00:00:20,310 then followed by the name of the service. 5 00:00:21,570 --> 00:00:22,800 Let's take an example. 6 00:00:31,490 --> 00:00:33,980 We tried to start our research service. 7 00:00:34,910 --> 00:00:42,050 Let's verify this S.H. service is up and running using the SS or the Net Stat Command, and we will 8 00:00:42,050 --> 00:00:47,120 use the grep utility to filter our output to show only the SS age service. 9 00:00:51,850 --> 00:00:59,170 We used the dash a dash investee, Dash, L and Vesp argument with our command. 10 00:01:00,600 --> 00:01:04,560 Let's open the nets that help and see each of these arguments. 11 00:01:15,270 --> 00:01:25,290 The here, this pale sockets the dash and do not resolve names, if you look here, this is the N. 12 00:01:27,530 --> 00:01:35,510 The Dashti for Tsipi Perkel, the Darcel for displaying listening server sockets only, and finally 13 00:01:35,900 --> 00:01:40,040 the Despard to display the process idea and the program name. 14 00:01:41,810 --> 00:01:47,120 As we can see, the his service is already started, but now let's stop the service. 15 00:01:55,390 --> 00:01:59,590 Now, let's use the same command again and see if we get the same output. 16 00:02:05,770 --> 00:02:16,000 Notice we didn't get the listen line, meaning that the NSA service is not running, also, an easy 17 00:02:16,000 --> 00:02:22,250 and quick way to find if the service is running or not is using the same command with this Tatis argument. 18 00:02:22,960 --> 00:02:26,320 Let's try first and to start the NSA service. 19 00:02:34,910 --> 00:02:37,700 Now, let's check the status of the service. 20 00:02:47,410 --> 00:02:54,700 Notice the green active running indicates that the service is running, let's stop it and check the 21 00:02:54,700 --> 00:02:55,570 status again. 22 00:03:06,030 --> 00:03:09,390 Now it shows that the service is inactive, that. 23 00:03:10,980 --> 00:03:15,810 But let's try the same thing with the Apache service. 24 00:03:30,840 --> 00:03:37,540 Now, if we want this service to run about time, we add the enable or disable argument. 25 00:03:38,190 --> 00:03:45,430 But first, let's see if our as a sage or Apache service is running at Buthayna using the list Desh 26 00:03:45,450 --> 00:03:47,670 unit Dash files argument. 27 00:03:55,370 --> 00:04:02,120 Let's try again, and this time we've got to filter the output to show DSH or Apache's service only. 28 00:04:06,990 --> 00:04:11,520 Notice the Apache to service is disable them, but let's enable it. 29 00:04:16,830 --> 00:04:17,850 Let's check again. 30 00:04:23,210 --> 00:04:23,700 Nice. 31 00:04:23,780 --> 00:04:24,740 It's enabled now. 32 00:04:26,180 --> 00:04:27,620 That was all for this video. 33 00:04:27,830 --> 00:04:28,530 Thank you. 34 00:04:28,550 --> 00:04:29,980 And see you in the next video.