Spaces:
Sleeping
Sleeping
chore: Add Redis ping check to supervisor.conf
Browse files- docker/supervisor.conf +6 -1
docker/supervisor.conf
CHANGED
|
@@ -23,4 +23,9 @@ startretries=3
|
|
| 23 |
redirect_stderr=true
|
| 24 |
redirect_stdout=true
|
| 25 |
stdout_logfile=/dev/stdout
|
| 26 |
-
stdout_logfile_maxbytes=0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
redirect_stderr=true
|
| 24 |
redirect_stdout=true
|
| 25 |
stdout_logfile=/dev/stdout
|
| 26 |
+
stdout_logfile_maxbytes=0
|
| 27 |
+
|
| 28 |
+
[program:ping_redis]
|
| 29 |
+
command=sleep 10 && redis-cli ping && echo "Redis is up" || echo "Redis is down"
|
| 30 |
+
autostart=true
|
| 31 |
+
autorestart=false
|