File tree 1 file changed +18
-14
lines changed
platform/broadcom/docker-syncd-brcm
1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change 3
3
PLATFORM_DIR=/usr/share/sonic/platform
4
4
HWSKU_DIR=/usr/share/sonic/hwsku
5
5
6
+ SYNCD_SOCKET_FILE=/var/run/sswsyncd/sswsyncd.socket
7
+
8
+ # Function: wait until syncd has created the socket for bcmcmd to connect to
9
+ wait_syncd () {
10
+ while true ; do
11
+ if [ -e ${SYNCD_SOCKET_FILE} ]; then
12
+ break
13
+ fi
14
+ sleep 1
15
+ done
16
+
17
+ # wait until bcm sdk is ready to get a request
18
+ sleep 3
19
+ }
20
+
21
+
22
+ # Remove stale files if they exist
6
23
rm -f /var/run/rsyslogd.pid
24
+ rm -f ${SYNCD_SOCKET_FILE}
7
25
8
26
supervisorctl start rsyslogd
9
27
18
36
fi
19
37
fi
20
38
21
- rm -f /var/run/sswsyncd/sswsyncd.socket
22
39
supervisorctl start syncd
23
40
24
- # Function: wait until syncd has created the socket for bcmcmd to connect to
25
- wait_syncd () {
26
- while true ; do
27
- if [ -e /var/run/sswsyncd/sswsyncd.socket ]; then
28
- break
29
- fi
30
- sleep 1
31
- done
32
-
33
- # wait until bcm sdk is ready to get a request
34
- sleep 3
35
- }
36
-
37
41
# If this platform has an initialization file for the Broadcom LED microprocessor, load it
38
42
if [ -r ${PLATFORM_DIR} /led_proc_init.soc ]; then
39
43
wait_syncd
You can’t perform that action at this time.
0 commit comments