diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-08-02 19:18:00 +0000 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-03-10 09:59:56 -0400 |
| commit | fae5f3c125e53e2c24e22e2feb34420852767ece (patch) | |
| tree | cfaf00e1154fd0d9c41a86d4f34982060097f0b1 | |
| parent | 6d7c0df5b47ad4cef14132b79b3ef65a4c19cbb3 (diff) | |
lib: immediately ping systemd when started
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
| -rw-r--r-- | lib/systemd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/systemd.c b/lib/systemd.c index 81b0400ab9..c5cc3aa447 100644 --- a/lib/systemd.c +++ b/lib/systemd.c @@ -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) |
