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 /isisd | |
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 'isisd')
-rw-r--r-- | isisd/isis_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_main.c b/isisd/isis_main.c index e28846bf6..55bc2a734 100644 --- a/isisd/isis_main.c +++ b/isisd/isis_main.c @@ -36,6 +36,7 @@ #include "filter.h" #include "zclient.h" #include "vrf.h" +#include "systemd.h" #include "isisd/dict.h" #include "include-netbsd/iso.h" @@ -167,6 +168,7 @@ reload () static __attribute__((__noreturn__)) void terminate (int i) { + systemd_send_stopping (); exit (i); } @@ -365,6 +367,8 @@ main (int argc, char **argv, char **envp) if (pid_file[0] != '\0') pid_output (pid_file); + systemd_send_started (master); + /* Make isis vty socket. */ vty_serv_sock (vty_addr, vty_port, ISIS_VTYSH_PATH); |