SUSE 12服务清理

时间:2018-05-15 14:30:21

标签: linux suse sles

我正在使用SLES 12 VM,我使用RPM安装了名为besclient的服务。卸载代理并删除文件时,服务的状态仍显示为活动状态。我查了一下,发现这2个文件仍然存在。

/sys/fs/cgroup/pids/system.slice/besclient.service
/sys/fs/cgroup/systemd/system.slice/besclient.service

我无法使用rm -rf command删除。如何删除这些文件?

rm: cannot remove '/sys/fs/cgroup/pids/system.slice/besclient.service/tasks': Operation not permitted

我是以root身份运行它。

2 个答案:

答案 0 :(得分:0)

/sys文件系统提供a filesystem-like view on information and config settings of the kernel。即,这些不是“真正的”文件,这就是为什么你不能删除它们。

答案 1 :(得分:0)

当禁用该设备并通过运行以下命令删除其配置文件时,将释放持久性cgroup:

〜] #systemctl禁用name.service

其中name代表要禁用的服务的名称。

Red Hat reference

显然有些东西还在运行。尝试: cat /sys/fs/cgroup/pids/system.slice/besclient.service/tasks查看您是否可以找到进程PID。

相关问题