通常,存储pid或类似的目录由服务的启动脚本创建. (见
this question)
但是,我刚刚注意到,当我禁用服务时,重启后仍会重新创建这些目录.我尝试过的所有服务都发生了这种情况.
root@sonorus:~# systemctl status openvpn ● openvpn.service - OpenVPN service Loaded: loaded (/lib/systemd/system/openvpn.service; disabled) Active: inactive (dead) root@sonorus:~# systemctl status ejabberd ● ejabberd.service - A distributed,fault-tolerant Jabber/XMPP server Loaded: loaded (/lib/systemd/system/ejabberd.service; disabled) Active: inactive (dead) Docs: https://www.process-one.net/en/ejabberd/docs/
哪个服务实际上是在创建这些目录?