summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-02-10 14:15:42 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-02-10 21:07:05 +0100
commit66dd6fdbdd6fbe578314c5e2760086b0b7645e44 (patch)
tree3c40951ab7442f8884da83e11a037be2ccff4575 /ospfd/ospf_main.c
parentvtysh: Modify -b option to work with -n option (diff)
downloadfrr-66dd6fdbdd6fbe578314c5e2760086b0b7645e44.tar.xz
frr-66dd6fdbdd6fbe578314c5e2760086b0b7645e44.zip
*: Modify protocols to have systemd integration
Modify the daemons to integrate with systemd, if it is enabled via configure, and to notify systemd that they are running/stopping and to send watch notifications. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index 4e67b20bb..f86f834b4 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -40,6 +40,7 @@
#include "sigevent.h"
#include "zclient.h"
#include "vrf.h"
+#include "systemd.h"
#include "ospfd/ospfd.h"
#include "ospfd/ospf_interface.h"
@@ -366,6 +367,8 @@ main (int argc, char **argv)
}
/* Process id file create. */
pid_output (pid_file);
+
+ systemd_send_started (master);
vty_serv_sock (vty_addr, vty_port, vty_path);
/* Print banner. */