From 4d09cbf5a71c019f0cf2b27a4f0497bfac115120 Mon Sep 17 00:00:00 2001 From: Maks Snegov Date: Thu, 11 Apr 2019 18:29:42 +0300 Subject: [PATCH] do not restart seaf-daemon in loop --- start.sh | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/start.sh b/start.sh index de5184b..7c3f6e7 100644 --- a/start.sh +++ b/start.sh @@ -55,19 +55,8 @@ setup_uid(){ } keep_in_foreground() { - # As there seems to be no way to let Seafile processes run in the foreground we - # need a foreground process. This has a dual use as a supervisor script because - # as soon as one process is not running, the command returns an exit code >0 - # leading to a script abortion thanks to "set -e". - while true - do - for SEAFILE_PROC in "ccnet" "seaf-daemon" - do - pkill -0 -f "${SEAFILE_PROC}" - sleep 1 - done - su - seafile -c "seaf-cli status" - sleep 5 + while true; do + tail -f /seafile-client/.ccnet/logs/seafile.log done }