Skip to content

Instantly share code, notes, and snippets.

@willnode
Created January 4, 2024 10:44
Show Gist options
  • Save willnode/88997709fb30a32c0e2611a9dc62fbad to your computer and use it in GitHub Desktop.
Save willnode/88997709fb30a32c0e2611a9dc62fbad to your computer and use it in GitHub Desktop.
DOM Cloud's restart script
#!/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