Modify minigraph parser output format so it fit DB schema Modify configuration templates to fit new schema Systemd services dependencies are modified so database starts before any configuration consumer
17 lines
493 B
Bash
Executable File
17 lines
493 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Create isc-dhcp-relay config file
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/isc-dhcp-relay.j2 > /etc/default/isc-dhcp-relay
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
supervisorctl start rsyslogd
|
|
|
|
# Wait for all interfaces to come up before starting the DHCP relay
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/wait_for_intf.sh.j2 > /usr/bin/wait_for_intf.sh
|
|
chmod +x /usr/bin/wait_for_intf.sh
|
|
/usr/bin/wait_for_intf.sh
|
|
|
|
# Start the DHCP relay
|
|
supervisorctl start isc-dhcp-relay
|