天天看點

supervisord簡單配置

centos下配置檔案目錄在

/etc/supervisord.d下

配置檔案為.ini格式

ubuntu下配置檔案在

;demo表示程式名稱
[program:VideoData]
;需要執行的指令
command=/usr/local/php7.2/bin/php think VideoData
directory=/home/wwwroot/cron_job
;環境變量
environment=PATH="/usr/local/php7.2/bin"
;哪個使用者運作
user=root
;是否自啟動
autostart=true
;是否自動重新開機
autorestart=true
;自動重新開機時間間隔,機關秒
startsecs=3
;錯誤日志檔案
stderr_logfile=/var/log/hot_qrcode/err_log/video_data.err.log
;輸出日志檔案
stdout_logfile=/var/log/hot_qrcode/err_log/video_data.out.log