Hands-on task
A post-release smoke test via cron
The release is out — now you need a smoke test for the future. Write an executable script /usr/local/bin/smoke-test that takes a URL as its first argument and exits with code 0 if the URL answered HTTP 200, and 1 in any other case (404, 500, the service not answering). Then add a cron job (any user's crontab or a file in /etc/cron.d/) that runs it every 5 minutes against http://localhost:8090/healthz and appends the output to /var/log/billing-smoke.log.
- curl http_code
- exit code
- cron
- */N
- appending >>