diff options
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); |