lib: immediately ping systemd when started

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2019-08-02 19:18:00 +00:00 committed by Donald Sharp
parent 6d7c0df5b4
commit fae5f3c125

View 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)