Last active
December 25, 2015 22:29
-
-
Save mwhooker/7050278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PREFIX="/home/ubuntu/service_platform/packer-amazon-chroot-volumes/" | |
| for ROOT in /proc/*/root; do | |
| LINK=$(readlink $ROOT) | |
| if [ "$LINK" != "/" ]; then | |
| PID=$(basename $(dirname "$ROOT")) | |
| sudo kill -9 "$PID" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment