ProgrammersOfVilnius / pov-check-health

Debian package that runs basic system health monitoring checks hourly from cron
https://launchpad.net/~pov/+archive/ppa
2 stars 0 forks source link

Exits with status 0 even if something was wrong #15

Open mgedmin opened 8 years ago

mgedmin commented 8 years ago

check-health should exit with non-zero status code if something went wrong.

Exception: maybe check-health -c could exit with 0 because I don't want my fabric runs to terminate early.

mgedmin commented 8 years ago

Also, each individual check should exit with a proper exit code, so I can do things like

checkproc atop || service atop restart