linux - CentOS 7: systemctl 找到 systemd 的 service 的 conf 文件路径

特米no

2018-06-01T08:16:40Z||2018-06-01T08:16:40Z

systemctl status:

systemctl status myService

输出类似:

myService.service - myService
   Loaded: loaded (/usr/lib/systemd/system/myService.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-05-22 15:11:43 CST; 1 weeks 3 days ago
 Main PID: 28420 (myService)
   CGroup: /system.slice/myService.service
           └─28420 /mnt/gn/go/bin/cf m

从Loaded可以看到service的路径是:/usr/lib/systemd/system/myService.service.