summaryrefslogtreecommitdiff
path: root/src/init/vyos-router
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-07 21:34:45 +0100
committerChristian Breunig <christian@breunig.cc>2024-02-07 21:56:38 +0100
commitf7a83728d4179ae5eedf0a109bc37733b79c82b4 (patch)
tree729dd884b6168d16ddd0bba2e98cfb7752834e94 /src/init/vyos-router
parent23b4b7fbe863a83aaa950381ec7930016a741e76 (diff)
downloadvyos-1x-f7a83728d4179ae5eedf0a109bc37733b79c82b4.tar.gz
vyos-1x-f7a83728d4179ae5eedf0a109bc37733b79c82b4.zip
init: T2044: only start rpki if cache is configured
This extends commit 9199c87cf ("init: T2044: always start/stop rpki during system boot") to check the bootup configuration if an RPKI cache is defined. Only start RPKI if this is the case. (cherry picked from commit 9b8e11e078c42e3ae86ebfa45fec57336f25a0af)
Diffstat (limited to 'src/init/vyos-router')
-rwxr-xr-xsrc/init/vyos-router4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router
index aaecbf2a1..2b4fac5ef 100755
--- a/src/init/vyos-router
+++ b/src/init/vyos-router
@@ -448,6 +448,10 @@ start ()
restore_if_missing_postconfig_script
run_postconfig_scripts
+ tmp=$(${vyos_libexec_dir}/read-saved-value.py --path "protocols rpki cache")
+ if [ ! -z $tmp ]; then
+ vtysh -c "rpki start"
+ fi
}
stop()