我在 path 有一个 systemd-machined 插件/etc/systemd/system/systemd-machined.service.d/10-machined-pid-file.conf
。当我跑步时,systemctl status systemd-machined
我确实看到了线条
Drop-In: /etc/systemd/system/systemd-machined.service.d
??10-machined-pid-file.conf
Run Code Online (Sandbox Code Playgroud)
但是,我在 /var/run/ 中没有看到 PID 文件。基于我的访问:
[Serivce]
PIDFile=/var/run/machined.pid
Run Code Online (Sandbox Code Playgroud)
我相信创建该 PID 文件应该没有任何问题。有什么我想念的吗?