Ubuntu 22.04:无法停止 systemd-resolved:它已重新启动

Ubuntu 22.04:无法停止 systemd-resolved:它已重新启动

在 ubuntu 22.04 上,我尝试停止并禁用 systemd-resolved:

sudo systemctl stop systemd-resolved

sudo systemctl disable  systemd-resolved

sudo systemctl status  systemd-resolved

○ systemd-resolved.service - Network Name Resolution
     Loaded: loaded (/lib/systemd/system/systemd-resolved.service; disabled; vendor preset: enabled)
     Active: inactive (dead)
       Docs: man:systemd-resolved.service(8)
             man:org.freedesktop.resolve1(5)
             https://www.freedesktop.org/wiki/Software/systemd/writing-network-configuration-managers
             https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients

但流程仍在进行中:

ps auxw | grep resolved
systemd+  166263  0.0  0.0  23964 12648 ?        Ss   mai28   0:12 /lib/systemd/systemd-resolved
systemd+  166266  0.0  0.0  23932 12672 ?        Ss   mai28   0:00 /lib/systemd/systemd-resolved
systemd+  166271  0.0  0.0  23932 12636 ?        Ss   mai28   0:34 /lib/systemd/systemd-resolved
systemd+  166272  0.0  0.0  23932 12692 ?        Ss   mai28   0:03 /lib/systemd/systemd-resolved

即使我杀了他们:

sudo killall systemd-resolved

它立即返回:

ps auxw | grep resolved
systemd+  253920  0.5  0.0  23964 12488 ?        Ss   15:04   0:00 /lib/systemd/systemd-resolved
systemd+  253923  0.6  0.0  23932 12788 ?        Ss   15:04   0:00 /lib/systemd/systemd-resolved
systemd+  253928  0.5  0.0  23932 12712 ?        Ss   15:04   0:00 /lib/systemd/systemd-resolved
systemd+  253929  0.5  0.0  23932 12692 ?        Ss   15:04   0:00 /lib/systemd/systemd-resolved
gquentin  253934  0.0  0.0  17880  2380 pts/1    S+   15:04   0:00 grep --color=auto resolved

那是什么原因呢?

问候,Gaétan

相关内容