Commit 88d578e6 authored by anderson's avatar anderson

Update conf/entrypoint.sh

parent 97a8fb55
......@@ -341,8 +341,21 @@ keep_in_foreground() {
echo '0 3 * * * seafile seaf-gc' > /etc/cron.d/seafile-gc
control_nginx
# echo "Starting sysvinit"
# exec /sbin/init 100>&1 1>&-
while sleep 60; do
ps aux |grep nginx |grep -q -v grep
PROCESS_1_STATUS=$?
ps aux |grep seaf-server |grep -q -v grep
PROCESS_2_STATUS=$?
ps aux |grep ccnet-server |grep -q -v grep
PROCESS_3_STATUS=$?
if [ $PROCESS_1_STATUS -ne 0 -o $PROCESS_2_STATUS -ne 0 -o $PROCESS_3_STATUS -ne 0 ]; then
echo "One of the processes has already exited."
exit 1
fi
done
}
prepare_env() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment