Commit c48cd7a6 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

monitor: improve monitor script reliability (fix?)

parent 8a0a74e8
...@@ -55,7 +55,8 @@ def runServices(directory): ...@@ -55,7 +55,8 @@ def runServices(directory):
try: try:
pid = int(open(service_path).read()) pid = int(open(service_path).read())
### because apache (or others) can write sockets ### because apache (or others) can write sockets
except IOError: ### We also ignore not readable pid files
except (IOError, ValueError):
continue continue
try: try:
os.kill(pid, 0) os.kill(pid, 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment