Search code examples
linuxsusesles

SUSE 12 service cleanup


I am using a SLES 12 VM where I have installed a service called as besclient using an RPM. When I uninstall the agent and remove the files the status of the service still shows ac active. I checked and found these 2 files still remain.

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

which I am unable to remove using rm -rf command. How to remove these kind of files?

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

I am running this as root.


Solution

  • Persistent cgroups are released when the unit is disabled and its configuration file is deleted by running:

    ~]# systemctl disable name.service

    where name stands for the name of the service to be disabled.

    Red Hat reference

    Apparently something is still running. Try: cat /sys/fs/cgroup/pids/system.slice/besclient.service/tasks to see if you can find a process PID.