Service Administration

Multi-Service Startup

300 pts
0 solves
hard hands-on
Three interconnected services need to start in the correct order: 1. database.sh -- creates /tmp/db.ready when running 2. cache.sh -- waits for /tmp/db.ready, then creates /tmp/cache.ready 3. webapp.sh -- waits for /tmp/cache.ready, then creates /tmp/webapp.ready The current start script at /opt/services/start_all.sh launches them in the WRONG order (webapp first, then cache, then database), causing a deadlock where nothing ever becomes ready. Fix the startup script so all three services come up successfully. All three /tmp/*.ready files must exist simultaneously.

Ready to solve this?

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