Skip to content

Instantly share code, notes, and snippets.

@ademidoff
Created March 15, 2024 17:10
Show Gist options
  • Save ademidoff/5af36a38e37a19afec3ee9a567262537 to your computer and use it in GitHub Desktop.
Save ademidoff/5af36a38e37a19afec3ee9a567262537 to your computer and use it in GitHub Desktop.
check-pmm-agent-setup.sh
#!/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