Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save whiskerz007/4e1c7204241b8a4dc7392c1e798c82db to your computer and use it in GitHub Desktop.
Save whiskerz007/4e1c7204241b8a4dc7392c1e798c82db to your computer and use it in GitHub Desktop.
Remove orphaned objects from cgroups in Proxmox
find /sys/fs/cgroup -depth -name ${OBJECT}* -type d -print -exec bash -c "cd {}/.. ; mkdir -p {}/bar ; find $(basename {}) -depth -type d -exec rmdir \{\} \;" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment