https://github.com/antoonline/bash-script-kill-zombie-processes
This script identifies and eliminates zombie processes on a Linux system. It first detects all zombie processes, then iterates through each one, killing the parent process to clean up the zombies. If necessary, the script will forcibly kill the parent process to ensure the removal of the zombie process.
https://github.com/antoonline/bash-script-kill-zombie-processes
linux processes ubuntu zombie
Last synced: 3 months ago
JSON representation
This script identifies and eliminates zombie processes on a Linux system. It first detects all zombie processes, then iterates through each one, killing the parent process to clean up the zombies. If necessary, the script will forcibly kill the parent process to ensure the removal of the zombie process.
- Host: GitHub
- URL: https://github.com/antoonline/bash-script-kill-zombie-processes
- Owner: AntoOnline
- Created: 2023-04-26T07:26:56.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T23:34:55.000Z (about 2 years ago)
- Last Synced: 2025-01-14T08:14:15.229Z (5 months ago)
- Topics: linux, processes, ubuntu, zombie
- Language: Shell
- Homepage: https://anto.online
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Zombie Process Killer
This script finds and kills zombie processes on Ubuntu systems. It sends the `SIGCHLD` signal to the parent process responsible for the zombie process, waits for up to 5 seconds for the zombie process to be reaped, and if the zombie process still exists, it forcibly kills the parent process using the `kill -9` command.
**Warning:** Use this script with caution. Investigate the zombie processes manually and understand the potential impact of forcibly killing the parent processes before using this script .
## Want to connect?
Feel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.
Or just visit my [website](https://anto.online) to see what I do.