diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-11-03 13:45:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-03 13:45:57 +0000 |
| commit | ad60030a813e8913dbf639aa449081ce1c8287d6 (patch) | |
| tree | 2017d487746a8576275b898cc2dddd72261c2f83 /src/init | |
| parent | 78af000fb3be20c45514bea83b12f0eb630dd7f6 (diff) | |
| parent | 018b6fd1275eb1cc04da41362b9df54c0d3ccf43 (diff) | |
| download | vyos-1x-ad60030a813e8913dbf639aa449081ce1c8287d6.tar.gz vyos-1x-ad60030a813e8913dbf639aa449081ce1c8287d6.zip | |
Merge pull request #4827 from jestabro/vyconfd-restart
T7980: Load active config on vyconfd restart
Diffstat (limited to 'src/init')
| -rwxr-xr-x | src/init/vyconfd.sh | 11 | ||||
| -rwxr-xr-x | src/init/vyos-router | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/src/init/vyconfd.sh b/src/init/vyconfd.sh new file mode 100755 index 000000000..670651f57 --- /dev/null +++ b/src/init/vyconfd.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# +# Check if state file exists to determine if restart +if [ -f /var/run/vyconfd.state ]; then + echo "Restarting vyconfd from active config" + /usr/libexec/vyos/vyconf/vyconfd --log-file /var/run/log/vyconfd.log --reload-active-config --legacy-config-path +else + echo "Starting vyconfd from saved config" + touch /var/run/vyconfd.state + /usr/libexec/vyos/vyconf/vyconfd --log-file /var/run/log/vyconfd.log --legacy-config-path +fi diff --git a/src/init/vyos-router b/src/init/vyos-router index 5365a40f1..794715368 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -594,8 +594,6 @@ start () disabled system_config || system_config || overall_status=1 - systemctl start vyconfd.service - for s in ${subinit[@]} ; do if ! disabled $s; then log_progress_msg $s |
