diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-10 14:15:42 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-02-10 21:07:05 +0100 |
commit | 66dd6fdbdd6fbe578314c5e2760086b0b7645e44 (patch) | |
tree | 3c40951ab7442f8884da83e11a037be2ccff4575 /ripd/rip_main.c | |
parent | vtysh: Modify -b option to work with -n option (diff) | |
download | frr-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 'ripd/rip_main.c')
-rw-r--r-- | ripd/rip_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ripd/rip_main.c b/ripd/rip_main.c index a5ea36a1f..6cd23c830 100644 --- a/ripd/rip_main.c +++ b/ripd/rip_main.c @@ -34,6 +34,7 @@ #include "sigevent.h" #include "zclient.h" #include "vrf.h" +#include "systemd.h" #include "ripd/ripd.h" @@ -155,6 +156,7 @@ sigint (void) if (! retain_mode) rip_clean (); + systemd_send_stopping (); exit (0); } @@ -303,6 +305,8 @@ main (int argc, char **argv) exit (1); } + systemd_send_started (master); + /* Pid file create. */ pid_output (pid_file); |