Skip to content

Commit 046bdd0

Browse files
saiarcot895pull[bot]
authored andcommitted
[restapi]: Don't use python/python2 for restapi start scripts (sonic-net#10285)
Python 2 isn't installed by default in Buster and Bullseye containers, and the scripts/modules can be used with Python 3, so make sure Python 3 is used. Why I did it After the Buster and Bullseye upgrade for the restapi container, processes will no longer start because supervisord is trying to call python and python2, both of which are unavailable. Signed-off-by: Saikrishna Arcot <[email protected]>
1 parent ffdb7ae commit 046bdd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dockers/docker-sonic-restapi/supervisord.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logfile_backups=2
44
nodaemon=true
55

66
[eventlistener:dependent-startup]
7-
command=python -m supervisord_dependent_startup
7+
command=python3 -m supervisord_dependent_startup
88
autostart=true
99
autorestart=unexpected
1010
startretries=0
@@ -13,7 +13,7 @@ events=PROCESS_STATE
1313
buffer_size=1024
1414

1515
[eventlistener:supervisor-proc-exit-listener]
16-
command=python2 /usr/bin/supervisor-proc-exit-listener --container-name restapi
16+
command=/usr/bin/supervisor-proc-exit-listener --container-name restapi
1717
events=PROCESS_STATE_EXITED,PROCESS_STATE_RUNNING
1818
autostart=true
1919
autorestart=false

0 commit comments

Comments
 (0)