~ajkavanagh/charm-helpers/add-service-checks-lp1524388

Viewing all changes in revision 516.

  • Committer: Alex Kavanagh
  • Date: 2016-01-27 12:47:55 UTC
  • Revision ID: alex.kavanagh@canonical.com-20160127124755-hn4j4oucox0h4a1k
Add service running and ports open checks to set_os_workload_status()
This adds optional checks to the set_os_workload_status(...) function to
make sure that the services that the charm says should be running are
actually running (according to service_running()) and also, optionally,
that the ports that are supposed to be open are open (on 0.0.0.0) and
have something listening to them.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: