SUSE 12 服务清理
SUSE 12 service cleanup
我使用的是 SLES 12 VM,我在其中使用 RPM 安装了名为 besclient
的服务。当我卸载代理并删除文件时,服务的状态仍然显示 ac active。我查看了一下,发现这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。
/sys
文件系统提供 a filesystem-like view on information and config settings of the kernel。也就是说,这些不是 "really" 文件,这就是为什么你不能删除它们。
当单元被禁用且其配置文件被 运行 删除时,持久性 cgroups 被释放:
~]# systemctl disable name.service
其中 name 代表要禁用的服务的名称。
显然还有一些东西 运行。尝试:
cat /sys/fs/cgroup/pids/system.slice/besclient.service/tasks
看看能不能找到进程PID。
我使用的是 SLES 12 VM,我在其中使用 RPM 安装了名为 besclient
的服务。当我卸载代理并删除文件时,服务的状态仍然显示 ac active。我查看了一下,发现这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。
/sys
文件系统提供 a filesystem-like view on information and config settings of the kernel。也就是说,这些不是 "really" 文件,这就是为什么你不能删除它们。
当单元被禁用且其配置文件被 运行 删除时,持久性 cgroups 被释放:
~]# systemctl disable name.service
其中 name 代表要禁用的服务的名称。
显然还有一些东西 运行。尝试:
cat /sys/fs/cgroup/pids/system.slice/besclient.service/tasks
看看能不能找到进程PID。