B4X FEED How to set a systemd (linux) watchdog ping in B4J

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: How to set a systemd (linux) watchdog ping in B4J است. این موضوع تا کنون 22 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع How to set a systemd (linux) watchdog ping in B4J
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
22
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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!

 

عقب
بالا