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