mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-01-31 03:12:45 +00:00
13bb140618
Signed-off-by: Nigel Gott <nigel@baserow.io>
12 lines
527 B
Bash
Executable file
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
|