diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2021-07-06 14:54:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 14:54:25 +0000 |
| commit | e15106149fda3b3c915d14a2fc6b749598a73b6c (patch) | |
| tree | 23c519d61c2155056803cc8e7de10cdaafa93d25 /lib/libfrr.c | |
| parent | acb4c44ef8da8c1a155184a809647533237adca9 (diff) | |
| parent | ab140d61cdd04db03ef597f645e601429396d3c8 (diff) | |
Merge pull request #8508 from opensourcerouting/systemd-no-lib
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libfrr.c b/lib/libfrr.c index 0817182f7a..97dab74d9b 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -44,6 +44,7 @@ #include "frr_pthread.h" #include "defaults.h" #include "frrscript.h" +#include "systemd.h" DEFINE_HOOK(frr_late_init, (struct thread_master * tm), (tm)); DEFINE_HOOK(frr_config_pre, (struct thread_master * tm), (tm)); @@ -363,6 +364,11 @@ void frr_preinit(struct frr_daemon_info *daemon, int argc, char **argv) startup_fds |= UINT64_C(0x1) << (uint64_t)i; } + + /* note this doesn't do anything, it just grabs state, so doing it + * early in _preinit is perfect. + */ + systemd_init_env(); } bool frr_is_startup_fd(int fd) |
