Created
March 15, 2024 17:10
-
-
Save ademidoff/5af36a38e37a19afec3ee9a567262537 to your computer and use it in GitHub Desktop.
check-pmm-agent-setup.sh
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 | |
if ! timeout 30 bash -c "until supervisorctl status pmm-update-perform-init | grep -q EXITED; do sleep 2; done"; then | |
echo "FATAL: failed to set up pmm-agent." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment