From 60bd2534287a4cb6a5d75ca959dd684e81ad0f53 Mon Sep 17 00:00:00 2001 From: Jorge Boncompte Date: Tue, 25 Jul 2017 12:10:17 +0200 Subject: [PATCH] watchfrr: hide systemd message if not systemd available Signed-off-by: Jorge Boncompte --- watchfrr/watchfrr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c index 1aa25b41d0..6adb25f322 100644 --- a/watchfrr/watchfrr.c +++ b/watchfrr/watchfrr.c @@ -684,9 +684,11 @@ static void daemon_send_ready(void) fp = fopen(DAEMON_VTY_DIR "/watchfrr.started", "w"); fclose(fp); +#if defined HAVE_SYSTEMD zlog_notice( "Watchfrr: Notifying Systemd we are up and running"); systemd_send_started(master, 0); +#endif sent = 1; } } -- 2.39.5