Created
January 4, 2024 10:44
-
-
Save willnode/88997709fb30a32c0e2611a9dc62fbad to your computer and use it in GitHub Desktop.
DOM Cloud's restart script
This file contains 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
#!/bin/bash | |
while [ `passenger-config list-instances --json | jq length` -ne 1 ]; do | |
echo "Waiting until NGINX done reloading..." | |
sleep 1 | |
done | |
sudo -n -- passenger-config reopen-logs &> /dev/null || true | |
passenger-config restart-app ~ --ignore-app-not-running |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment