hauleth / erlang-systemd

systemd utilities for Erlang applications
Apache License 2.0
174 stars 19 forks source link

Add support for healthcheck function #21

Closed hauleth closed 3 years ago

hauleth commented 3 years ago

Given function will be called before each ping to the watchdog process and should inform about state of the application. Then, depending on the returned value, the process will be marked for restart by the systemd or not.

codecov[bot] commented 3 years ago

Codecov Report

Merging #21 (28e55c1) into master (a435049) will decrease coverage by 0.44%. The diff coverage is 92.85%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #21      +/-   ##
==========================================
- Coverage   95.27%   94.82%   -0.45%     
==========================================
  Files           8        8              
  Lines         296      309      +13     
==========================================
+ Hits          282      293      +11     
- Misses         14       16       +2     
Impacted Files Coverage Δ
src/systemd_watchdog.erl 90.62% <88.23%> (-4.12%) :arrow_down:
src/systemd.erl 93.22% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a435049...28e55c1. Read the comment docs.