2021-01-25 19:43:56 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Generate supervisord config file
|
|
|
|
mkdir -p /etc/supervisor/conf.d/
|
|
|
|
|
2023-06-25 18:36:09 -05:00
|
|
|
TZ=$(cat /etc/timezone)
|
|
|
|
rm -rf /etc/localtime
|
|
|
|
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
|
|
|
|
|
2021-01-25 19:43:56 -06:00
|
|
|
# The docker container should start this script as PID 1, so now that supervisord is
|
|
|
|
# properly configured, we exec supervisord so that it runs as PID 1 for the
|
|
|
|
# duration of the container's lifetime
|
|
|
|
exec /usr/local/bin/supervisord
|