Skip to content

Status from Supervisor #37

Answered by troglobit
janitza-luwe asked this question in Q&A
Discussion options

You must be logged in to vote

The manual page, in the source tree man/watchdogd.conf.5 has some information on this. Here's an excerpt.

script = /path/to/script.sh
When a supervised process fails to meet its deadline the supervisor by default performs an unconditional reset,
saving the reset cause first. However, if a script is provided in this section it will be called instead:

       script.sh supervisor CAUSE PID LABEL

The CAUSE value is documented in watchdogctl(1).

The LABEL can be any free form string the supervised process used when registering with the supervisor, hence it
is given as the last argument to the script.

The return value of the script determines how the system continues to operate: POSIX OK (0) …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by janitza-luwe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants