mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 06:32:00 -03:30
Abort if redis cannot be started
This commit is contained in:
parent
904b0ab310
commit
680753b564
@ -57,6 +57,15 @@ EOF
|
||||
mkdir -p /var/run/redis
|
||||
chown redis /var/run/redis
|
||||
sudo -u redis redis-server /etc/redis/redis.conf &
|
||||
redis_pid=$!
|
||||
for i in {1..5}
|
||||
do
|
||||
ps -p $PID || [[ $i -lt 5 ]] || {
|
||||
echo "FAILED TO START REDIS"
|
||||
return 1
|
||||
} && break
|
||||
sleep 3
|
||||
done
|
||||
fi
|
||||
|
||||
while :; do
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user