shutdown_host.sh 388 B

1234567891011
  1. #!/bin/bash
  2. # Script to shutdown the host system from inside Docker container
  3. # This must be placed on the host and mounted into the container
  4. echo "$(date): Shutdown requested from Dune Weaver" >> /tmp/dune-weaver-shutdown.log
  5. # Stop Docker containers gracefully
  6. docker compose -f /app/docker-compose.yml down 2>/dev/null || true
  7. # Shutdown the host system
  8. shutdown -h now