Skip to content

Instantly share code, notes, and snippets.

@lamanotrama
Last active December 12, 2015 01:18
Show Gist options
  • Save lamanotrama/4689611 to your computer and use it in GitHub Desktop.
Save lamanotrama/4689611 to your computer and use it in GitHub Desktop.
growthforecastユーザでplenvで入れたperl使って、growthforecastを動かす場合の、supervisordの設定
[program:growthforecast]
command = plenv exec growthforecast.pl --data-dir /home/growthforecast/data
user = growthforecast
environment = HOME=/home/growthforecast
directory = /home/growthforecast
process_name = %(program_name)s
redirect_stderr = false
stdout_logfile = /var/log/supervisor/%(program_name)s.log
stdout_logfile_maxbytes = 50MB
stdout_logfile_backups = 10
stderr_logfile = /var/log/supervisor/%(program_name)s_err.log
stderr_logfile_maxbytes = 50MB
stderr_logfile_backups = 10
autostart = true
autorestart= true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment