agjohnson/csistck

Way to detect repair

Closed this issue · 3 comments

A way to detect a repair operation would allow for service restart on failure, or repair operation maybe.

Noting this before I forget. Make the process function call Csistck::Test->{on_repair} -- or {on_check} -- if it exists, after a repair operation success or failure. Tests can be defined with on_repair => sub { } or on_repair => Csistck::Test, which will be called by the process function.

Blocking this is #21

And another note before I forget: a grouping -- maybe by reusing the role syntax -- should allow a test to be called if any test in an array of tests had a repair operation. Maybe? This is useful for restarting on a number of operations for apache httpd, for example.

Also, the Role object needs the processing rules to allow for on_repair.