Service Administration

The Runaway Process

250 pts
0 solves
medium hands-on
A poorly written worker script at /opt/scripts/worker.sh spawns background processes that never get cleaned up. It's set to run every minute via cron, and it has already left 10 orphaned "sleep 9999" processes running. Your tasks: 1. Kill all the orphaned "sleep 9999" processes 2. Fix the cron job so the worker script properly manages its processes (either remove the cron entry or fix the script to clean up after itself) The watcher checks that no "sleep 9999" processes are running AND that the cron job has been addressed (removed or script fixed with cleanup logic).

Ready to solve this?

Create a free account to launch containers, submit answers, and track your progress.