Error in watchdogd when generic monitor script is enabled. #38
-
I've encountered an issue with the watchdogd service when attempting to activate a generic monitoring script. This particular script has a runtime exceeding one second, leading to the system ultimately rebooting. Our configuration is as follows: generic { The error message we're encountering reads: "Monitor script PID 1057 is still running after 20 seconds. Upon further investigation, I've identified that the problem lies in the fact that 'gs->script_runtime' is measured in milliseconds, while 'gs->script_runtime_max' is maintainted in seconds, as indicated by the source code here: link to source code. This appears to be a bug that requires rectification. Kindly confirm if my assessment is accurate. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Nice catch! I've created issue #39 for this, contributions to fix this (PR, or patches) are most welcome since I'm quite busy with other projects during the next couple of months. |
Beta Was this translation helpful? Give feedback.
-
Thank you ! I have created a PR for the same. Can you please review ! |
Beta Was this translation helpful? Give feedback.
Thanks @troglobit for merging this change #40, closing the discussion.