[supervisord]: use abspath as supervisord entrypoint (#5995)

use abspath makes the entrypoint not affected by PATH env.

Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
lguohan
2020-11-22 21:18:44 -08:00
committed by GitHub
parent e0781f463f
commit 4d3eb18ca7
47 changed files with 49 additions and 49 deletions

View File

@@ -55,7 +55,7 @@ if [[ $DATABASE_TYPE == "chassisdb" ]]; then
# generate all redis server supervisord configuration file
sonic-cfggen -j $db_cfg_file_tmp -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
rm $db_cfg_file_tmp
exec supervisord
exec /usr/local/bin/supervisord
exit 0
fi
@@ -79,4 +79,4 @@ else
fi
rm $db_cfg_file_tmp
exec supervisord
exec /usr/local/bin/supervisord