CentOS7查看systemctl 控制的服务的相关配置

时间:2023-03-09 20:02:18
CentOS7查看systemctl 控制的服务的相关配置

例如,启动配置文件

[root@Docker_Machine_192.168.31.130 ~]# systemctl show --property=FragmentPath docker
FragmentPath=/usr/lib/systemd/system/docker.service
[root@Docker_Machine_192.168.31.130 ~]# systemctl show docker | grep FragmentPath
FragmentPath=/usr/lib/systemd/system/docker.service