get all running services linux code example
Example 1: systemctl check availabe services
# systemctl list-units --type=service
OR
# systemctl --type=service
Example 2: checking service status in linux
$ sudo service httpd status
httpd is stopped