Skip to content
\n

The CAUSE value is documented in watchdogctl(1).

\n

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

\n

The return value of the script determines how the system continues to operate: POSIX OK (0) means the script has
\nhandled the situation in some manner and watchdogd stops supervising the offending process, a non-zero return
\nvalue from script means the script has either failed to handle the situation or prefers to delegate to watchdogd
\nto save the reset cause and perform the actual system reset.

\n\n
\nThis should probably also be mentioned in the top-level README.\n
","upvoteCount":1,"url":"https://github.com/troglobit/watchdogd/discussions/37#discussioncomment-6975135"}}}

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