8f348399f5
- Consolidate config.sh and start.sh scripts into one script (start.sh) - Solve issue #435 - All dockers now run supervisord as their ENTRYPOINT - All stdout/stderr output from processes managed by supervisord is now sent to syslog instead of their own files - Supervisord log messages are now also sent to syslog - Removed unused smartmontools package from docker-platform-monitor
19 lines
504 B
Bash
Executable File
19 lines
504 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
sonic-cfggen -m /etc/sonic/minigraph.xml -t /usr/share/sonic/templates/isc-dhcp-relay.j2 > /etc/default/isc-dhcp-relay
|
|
|
|
rm -f /var/run/rsyslogd.pid
|
|
|
|
supervisorctl start rsyslogd
|
|
|
|
VLAN_IFACE_NAME=`sonic-cfggen -m /etc/sonic/minigraph.xml -v "minigraph_vlan_interfaces[0]['attachto']"`
|
|
|
|
# Wait for the VLAN to come up (i.e., 'ip link show' returns 0)
|
|
until ip link show $VLAN_IFACE_NAME > /dev/null 2>&1; do
|
|
sleep 1
|
|
done
|
|
|
|
# Start the DHCP relay
|
|
supervisorctl start isc-dhcp-relay
|
|
|