I have a python flask application containerized and to be deployed as an azure web app. I would like to restart my application every 24 hours. I tried the approach discussed here Have Supervisord Periodically restart child processes , but it doesn't work. What should be my supervisord restart command to achieve this? My current supervisord config is like:
[program:gunicorn]
command=gunicorn --config conf/gunicorn.conf.py
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:periodicrestarter]
command = sh -c "echo 'restart gunicorn' | supervisorctl;sleep 86400"
autorestart=True