supervisord簡單配置

centos下配置文件目錄在

/etc/supervisord.d下

配置文件爲.ini格式

ubuntu下配置文件在

/etc/supervisor/conf.d下

配置文件爲.conf格式

;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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章