watchdog should allow a configurable SIGTERM->SIGKILL delay

Bug #1225386 reported by hexafraction
8
This bug affects 1 person
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.

Revision history for this message
Paul Crawford (psc-sat) wrote :

This has been added to the current GIT version:

http://sourceforge.net/p/watchdog/code/ci/77e777e2fb4cc0723fb51ad5556a427cf345385b/

Hopefully there will soon be a version 5.15 release with this feature included.

Revision history for this message
Lenin (gagarin) wrote :

5.15 was released with 18.04

Changed in watchdog (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.