1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-01-31 03:12:45 +00:00
bramw_baserow/deploy/all-in-one/supervisor/stop-supervisor.sh
Nigel Gott 13bb140618 Add all-in-one image used as a base by cloudron/heroku.
Signed-off-by: Nigel Gott <nigel@baserow.io>
2022-02-28 13:56:55 +00:00

12 lines
527 B
Bash
Executable file

#!/usr/bin/env bash
set -Eeo pipefail
# This file implements and follows supervisord's eventlistener protocol which has
# specific requirements for what is written to STDOUT. Please ensure all stdout follows
# the protocol as defined in http://supervisord.org/events.html#event-listeners-and-event-notifications
printf "READY\n";
while read -r; do
echo -e "\e[31mBaserow was stopped or one of it's services crashed, see the logs above for more details. \e[0m" >&2
kill -SIGTERM "$(cat supervisord.pid)"
done < /dev/stdin