有许多不同的地方可以放置systemd单元文件。是否有一种简单快捷的方法来询问systemd从哪里读取服务的声明,只给出服务名称?
发布于 2022-06-14 17:39:38
你可以用猫系统的单位。这将文件位置显示为注释。奖励:它还显示越权。
systemctl cat sssd
# /lib/systemd/system/sssd.service
[Unit]
...
# /etc/systemd/system/sssd.service.d/override.conf
[Unit]
...发布于 2023-05-31 19:59:09
下面的一个给出多个文件位置
systemctl显示-p FragmentPath {accounts daemon、ntp、sshd}
FragmentPath=/lib/systemd/system/accounts-daemon.service
FragmentPath=/lib/systemd/system/ntp.service
FragmentPath=/lib/systemd/system/ssh.service
https://serverfault.com/questions/692771
复制相似问题