From 97fa7e03d13bd73726bcbd0e6c556a8e336163a4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 31 Jul 2018 14:45:14 +0200 Subject: [PATCH] dont swallow synapse startup errors --- synapse/start.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/synapse/start.sh b/synapse/start.sh index 785909a0b1..12b89b31ed 100755 --- a/synapse/start.sh +++ b/synapse/start.sh @@ -3,4 +3,10 @@ BASE_DIR=$(readlink -f $(dirname $0)) cd $BASE_DIR cd installations/consent source env/bin/activate -./synctl start 2> /dev/null +LOGFILE=$(mktemp) +./synctl start 2> $LOGFILE +EXIT_CODE=$? +if [ $EXIT_CODE -ne 0 ]; then + cat $LOGFILE +fi +exit $EXIT_CODE \ No newline at end of file