4d3eb18ca7
use abspath makes the entrypoint not affected by PATH env. Signed-off-by: Guohan Lu <lguohan@gmail.com>
6 lines
245 B
Bash
Executable File
6 lines
245 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#Generate supervisord.conf based on device metadata
|
|
mkdir -p /etc/supervisor/conf.d/
|
|
sonic-cfggen -d -t /usr/share/sonic/templates/supervisord.conf.j2 > /etc/supervisor/conf.d/supervisord.conf
|
|
exec /usr/local/bin/supervisord
|