]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: immediately ping systemd when started
authorQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Aug 2019 19:18:00 +0000 (19:18 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 10 Mar 2020 13:59:56 +0000 (09:59 -0400)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/systemd.c

index 81b0400ab99c067d00fa9dc8d8085168f3f35b41..c5cc3aa447f5c9790a47af279163c3a18bda90ad 100644 (file)
@@ -114,8 +114,10 @@ void systemd_send_started(struct thread_master *m, int the_process)
        systemd_master = m;
 
        systemd_send_information("READY=1");
-       if (wsecs != 0)
+       if (wsecs != 0) {
+               systemd_send_information("WATCHDOG=1");
                thread_add_timer(m, systemd_send_watchdog, m, wsecs, NULL);
+       }
 }
 
 void systemd_send_status(const char *status)