How would you execute:
sd_notify (0, "WATCHDOG=1");
in B4J to ping the systemd watchdog timer?
I am running a B4J server application as a systemd service and would like to setup a watchdog timer to restart the service if it hangs. I have setup the service unit properly with the "WatchdogSec=" set to the interval I need. I just need to find a way to ping the systemd watchdog timer in my application without have to resort to using "Shell" and the "systemd-notify" command.
I assume there may be a way to call "sd_notify" using the javaobject library but am not very familiar with using it.
Appreciate any input. Thanks!
sd_notify (0, "WATCHDOG=1");
in B4J to ping the systemd watchdog timer?
I am running a B4J server application as a systemd service and would like to setup a watchdog timer to restart the service if it hangs. I have setup the service unit properly with the "WatchdogSec=" set to the interval I need. I just need to find a way to ping the systemd watchdog timer in my application without have to resort to using "Shell" and the "systemd-notify" command.
I assume there may be a way to call "sd_notify" using the javaobject library but am not very familiar with using it.
Appreciate any input. Thanks!