It informs the status, the id process of the service and many more. The information is not in the short form, but it has lots of additional information regarding on the service. Referring to the output generated above, the service status is currently active or running. Process: 19873 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)Īug 10 12:01:56 hostname systemd: Starting The Apache HTTP Server.Īug 10 12:01:58 hostname systemd: Started The Apache HTTP ~# Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)ĭrop-In: /lib/systemd/system/Īctive: active (running) since Sat 12:01:58 9s ago So, if apache2 is an example to check the status of it, the following is an output of the generated ~# systemctl status apache2 Next, if there is a need for specific and detail about the status of the service, just execute according to the following command pattern : Without having to check further, a short information about the status is already there in the above output. In the above command execution, the status of the service is actually available. rvice loaded active running The Apache HTTP ~#.The following is the execution of the above command pattern using ‘apache2’ as an example of the searched service ~# systemctl -l -type service -all | grep apache2 Systemctl -l -type service -all | grep service_name The following is the output generated after executing the above command in the operating system ~# service -status-all | grep apache2Īnother one for searching a specific service is in the following pattern : For an example, in this context the service name is ‘apache2’. The following is the example to search that specific service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |