From: Jorge Boncompte Date: Tue, 25 Jul 2017 10:10:17 +0000 (+0200) Subject: watchfrr: hide systemd message if not systemd available X-Git-Tag: frr-4.0-dev~455^2~12 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=60bd2534287a4cb6a5d75ca959dd684e81ad0f53;p=mirror%2Ffrr.git watchfrr: hide systemd message if not systemd available Signed-off-by: Jorge Boncompte --- 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; } }