My customer's java app - .jar
file runs on rPi B+
with ArchLinux
installed. Now, I've also enabled hardware watchdog timer which purpose is to reboot rPi when java app hangs. Now, I've configured the watchdog timer with (code chunk from /etc/watchdog.conf
):
file = /mnt/data/settings/octopus.watchdog
change = 3600
max-temperature = 80
interval = 1
logtick = 1
log-dir = /var/log/watchdog
realtime = yes
priority = 1
Then I restart service and I get reboot every 10 seconds. Why?! Then, the watchdog sends SIGTERM
signal to processes before reboot and I've updated my java app with hook mechanism for catching SIGTEM
signal, the purpose is saving settings and closing some file before reboot and this works ok. However, my question is does reboot phase "waits" for this java app to properly (to save and close the files) end or it simply kills the process?