supervisor.sh 435 B

1234567891011
  1. #!/usr/bin/env bash
  2. # Init vars
  3. if [[ -z "$SERVICE_SUPERVISOR_OPTS" ]]; then SERVICE_SUPERVISOR_OPTS=""; fi
  4. if [[ -z "$SERVICE_SUPERVISOR_USER" ]]; then SERVICE_SUPERVISOR_USER="root"; fi
  5. source /opt/docker/bin/config.sh
  6. includeScriptDir "/opt/docker/bin/service.d/supervisor.d/"
  7. exec supervisord -c /opt/docker/etc/supervisor.conf --logfile /dev/null --pidfile /dev/null --user "$SERVICE_SUPERVISOR_USER" $SERVICE_SUPERVISOR_OPTS