Skip to content

Instantly share code, notes, and snippets.

@chihirokaasan
Created March 15, 2017 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihirokaasan/1b3366806f031cde3ef295251392d5d0 to your computer and use it in GitHub Desktop.
Save chihirokaasan/1b3366806f031cde3ef295251392d5d0 to your computer and use it in GitHub Desktop.
supervisord confファイルの設定
[program:hoge]<br>
command=/usr/local/bin/php /home/hoge/public_html/artisan queue:listen beanstalkd
directory=/home/hoge/public_html
priority=999 ; the relative start priority (default 999)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
startsecs=10 ; number of secs prog must stay running (def. 10)
startretries=3 ; max # of serial start failures (default 3)
exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
stopsignal=QUIT ; signal used to kill process (default TERM)
stopwaitsecs=10 ; max num secs to wait before SIGKILL (default 10)
user=apache ; setuid to this UNIX account to run the program
log_stdout=true ; if true, log program stdout (default true)
log_stderr=true ; if true, log program stderr (def false)
logfile= /home/hoge/public_html/app/storage/logs/laravel-test-queue.log ; child log path, use NONE for none; default AUTO
logfile_maxbytes=10MB ; max # logfile bytes b4 rotation (default 50MB)
logfile_backups=10 ; # of logfile backups (default 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment