Dependent program checks, checking PID using program PATH.
Issue #223
resolved
Hi!
I have an interesting case here.
One of the programs is monitored using:
check program A with path /etc/whateverA
There's a second one, monitored the same way, but dependent on the first one
check program B with /path/whateverB
depends on A
Now, at some point I've spotted in the logs an error message like the one that follows:
Error reading pid from file '/etc/whateverA'
Now since /etc/whateverA
contains bash code and has regular output except of the exit code this leads to sort of an race.
Comments (4)
-
-
repo owner - changed status to resolved
Fix Issue
#223: Don't log "Error reading pid from ..." for non-process checks on stop/restart.→ <<cset fcfb05d2077b>>
-
Issue
#343was marked as a duplicate of this issue. -
repo owner - removed version
Removing version: 5.14 (automated comment)
- Log in to comment
i have similar case but without dependent case, check program sssd with path /usr/local/bin/checksssd.sh
checksssd.sh is a shell script that checks for the return and exits with 0 or 1. I get Error reading pid from file '/usr/local/bin/checksssd.sh'
Otherwise it seems to restart properly.