]> git.puffer.fish Git - mirror/frr.git/commitdiff
watchfrr: hide systemd message if not systemd available
authorJorge Boncompte <jbonor@gmail.com>
Tue, 25 Jul 2017 10:10:17 +0000 (12:10 +0200)
committerJorge Boncompte <jbonor@gmail.com>
Fri, 4 Aug 2017 08:19:36 +0000 (10:19 +0200)
Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
watchfrr/watchfrr.c

index 1aa25b41d030cde9add5717c8a12776b54b9369c..6adb25f322c099f9b9f27cf5284bc20d551c1f33 100644 (file)
@@ -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;
        }
 }