我有一个 shell 环境库,我在其中为我的 bash/zsh 环境(Linux 和 macOS)维护所有类型的检查和辅助函数。我喜欢定期检查自动检查我的操作系统的功能,这样我就不会忘记某些事情并始终保持一切新鲜。
今天我在我的 Raspberry 上运行一些服务,当列出所有服务时,systemctl list-units --type=service --all
我注意到一些失败和not-found
条目。故障很容易清理,因为它们是未清理干净的旧 pihole 和 vsftpd 服务文件。但是我应该如何处理这些not-found
问题呢?是否有某些人可以简单地忽略或为他们生成基本服务文件?
pi@raspberrypi [130] % systemctl list-units --type=service --all | grep "not-found"
● auditd.service not-found inactive dead auditd.service
● console-screen.service not-found inactive dead console-screen.service
● exim4.service not-found inactive dead exim4.service
● firewalld.service not-found inactive dead firewalld.service
● gssproxy.service not-found inactive dead gssproxy.service
● kbd.service not-found inactive dead kbd.service
● mountkernfs.service not-found inactive dead mountkernfs.service
● NetworkManager.service not-found inactive dead NetworkManager.service
● nfs-blkmap.service not-found inactive dead nfs-blkmap.service
● nfs-server.service not-found inactive dead nfs-server.service
● nslcd.service not-found inactive dead nslcd.service
● sendmail.service not-found inactive dead sendmail.service
● sssd.service not-found inactive dead sssd.service
● systemd-update-done.service not-found inactive dead systemd-update-done.service
● systemd-vconsole-setup.service not-found inactive dead systemd-vconsole-setup.service
● ypbind.service not-found inactive dead ypbind.service