greenbone / ospd

OSPd is a framework for vulnerability scanners which share the same communication protocol: OSP (Open Scanner Protocol)
GNU Affero General Public License v3.0
30 stars 36 forks source link

Remove the pid file if there is no process for the pid or the process name does not match. #405

Closed jjnicola closed 3 years ago

jjnicola commented 3 years ago

What: Remove the pid file if there is no process for the pid or the process name does not match.

Why: To avoid removing the pidfile manually when ospd scanner was killed or stopped abruptly.

How:

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #405 (f5f4b3e) into ospd-20.08 (64d0b3c) will decrease coverage by 0.32%. The diff coverage is 6.66%.

Impacted file tree graph

@@              Coverage Diff               @@
##           ospd-20.08     #405      +/-   ##
==============================================
- Coverage       74.55%   74.22%   -0.33%     
==============================================
  Files              23       23              
  Lines            2641     2654      +13     
==============================================
+ Hits             1969     1970       +1     
- Misses            672      684      +12     
Impacted Files Coverage Δ
ospd/misc.py 44.15% <6.66%> (-7.41%) :arrow_down:

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 64d0b3c...f5f4b3e. Read the comment docs.