; /home/yeganeh/public_html/worker/supervisor/api_bot_cleanup.conf
; کپی به: /etc/supervisor/conf.d/api_bot_cleanup.conf
; سپس: supervisorctl reread && supervisorctl update && supervisorctl start api_bot_cleanup

[program:api_bot_cleanup]
command=/usr/local/bin/php /home/yeganeh/public_html/worker/api_bot_cleanup_daemon.php --supervisor
directory=/home/yeganeh/public_html/worker
user=yeganeh

autostart=true
autorestart=true
startsecs=3
startretries=10

stopwaitsecs=30
stopasgroup=true
killasgroup=true

stdout_logfile=/home/yeganeh/public_html/worker/logs/cleanup_stdout.log
stderr_logfile=/home/yeganeh/public_html/worker/logs/cleanup_stderr.log
stdout_logfile_maxbytes=20MB
stderr_logfile_maxbytes=20MB
stdout_logfile_backups=5
stderr_logfile_backups=5

environment=SUPERVISOR_ENABLED="1",TZ="Asia/Tehran"
