This way it is always created and systemd's watchdog timestamp is
updated as early as possible and not later in the app's startup method.
static void
boot_manager_application_init (BootManagerApplication *application)
{
+ /* update systemd's watchdog timestamp every 120 seconds */
+ application->watchdog_client = watchdog_client_new (120);
}
boot_manager_application_startup (GApplication *app)
{
BootManagerApplication *application = BOOT_MANAGER_APPLICATION (app);
-
- /* update systemd's watchdog timestamp every 120 seconds */
- application->watchdog_client = watchdog_client_new (120);
}