See see dependency for a package, run
1 |
systemctl list-dependencies --reverse PACKAGE_NAME |
Service file location
service files are located in /usr/lib/systemd/system
1 2 3 4 5 6 7 |
[root@web-0001 system]# pwd /usr/lib/systemd/system [root@web-0001 system]# ls -l | grep php -rw-r--r-- 1 root root 507 Jul 6 2017 php56-php-fpm.service -rw-r--r-- 1 root root 502 Jan 3 06:55 php72-php-fpm.service -rw-r--r-- 1 root root 467 Jun 7 2017 php-fpm.service [root@web-0001 system]# |
List all enabled services
1 |
systemctl list-unit-files | grep enabled |
See all running services
1 |
systemctl | grep running |