File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # Check if state file exists to determine if restart
4+ if [ -f /var/run/vyconfd.state ]; then
5+ echo " Restarting vyconfd from active config"
6+ /usr/libexec/vyos/vyconf/vyconfd --log-file /var/run/log/vyconfd.log --reload-active-config --legacy-config-path
7+ else
8+ echo " Starting vyconfd from saved config"
9+ touch /var/run/vyconfd.state
10+ /usr/libexec/vyos/vyconf/vyconfd --log-file /var/run/log/vyconfd.log --legacy-config-path
11+ fi
Original file line number Diff line number Diff line change @@ -594,8 +594,6 @@ start ()
594594
595595 disabled system_config || system_config || overall_status=1
596596
597- systemctl start vyconfd.service
598-
599597 for s in ${subinit[@]} ; do
600598 if ! disabled $s ; then
601599 log_progress_msg $s
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ DefaultDependencies=no
88After =systemd-remount-fs.service
99
1010[Service]
11- ExecStart =/usr/libexec/vyos/vyconf /vyconfd --log-file /var/run/log/vyconfd.log --legacy-config-path
11+ ExecStart =/usr/libexec/vyos/init /vyconfd.sh
1212Type =exec
1313SyslogIdentifier =vyconfd
1414SyslogFacility =daemon
You can’t perform that action at this time.
0 commit comments