watchdog should allow a configurable SIGTERM->SIGKILL delay
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
watchdog (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is a feature request, so if someone with the appropriate permissions could tag this as wishlist that would be nice.
I use Watchdog on a server that runs a program that has a long, unavoidable shutdown sequence. From a SIGTERM to process termination, it can be anywhere from 15-60 seconds. Watchdog, however, will only offer 5 seconds in case of a failure, which is hardwired into shutdown.c, apparently line 445.
I request that the time is set in a configuration file instead of in source, so that the time can be tuned.
As it appears, sleep()ing for more than 60 seconds will cause a hard reboot anyway, so safe_sleep as seen in the current Git pull(as of Sept 14. 2013) seems to be the proper function to use.
This has been added to the current GIT version:
http:// sourceforge. net/p/watchdog/ code/ci/ 77e777e2fb4cc07 23fb51ad5556a42 7cf345385b/
Hopefully there will soon be a version 5.15 release with this feature included.