Skip to content

Commit

Permalink
Template supervisord.conf as per issue #923
Browse files Browse the repository at this point in the history
  • Loading branch information
drj11 committed Mar 3, 2016
1 parent 8baddce commit 6a28476
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions deployment/refinery-modules/refinery/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,10 @@
}

file { "${django_root}/supervisord.conf":
ensure => file,
source => "${django_root}/supervisord.conf.sample",
owner => $app_user,
group => $app_group,
ensure => file,
content => template("${django_root}/supervisord.conf.erb"),
owner => $app_user,
group => $app_group,
}
->
exec { "supervisord":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ priority = 995
[program:worker1]
; minimum of four processes required to avoid problems with monitoring tasks
command = python %(here)s/manage.py celeryd -c 4 -Q celery --events
environment = PATH="/home/vagrant/.virtualenvs/refinery-platform/bin"
environment = PATH="<%= @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celeryd-w1.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 4
Expand All @@ -48,7 +48,7 @@ priority = 995
[program:worker2]
; limits concurrency of file imports to one to avoid overloading system IO
command = python %(here)s/manage.py celeryd -c 1 -Q file_import --events
environment = PATH="/home/vagrant/.virtualenvs/refinery-platform/bin"
environment = PATH="< @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celeryd-w2.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 4
Expand All @@ -65,7 +65,7 @@ priority = 995

[program:celerycam]
command = python %(here)s/manage.py celerycam
environment = PATH="/home/vagrant/.virtualenvs/refinery-platform/bin"
environment = PATH="< @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celerycam.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 4
Expand All @@ -77,7 +77,7 @@ priority= 994

[program:celerybeat]
command = python %(here)s/manage.py celerybeat
environment = PATH="/home/vagrant/.virtualenvs/refinery-platform/bin"
environment = PATH="< @virtualenv %>/bin"
stdout_logfile = %(here)s/log/celerybeat.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 4
Expand All @@ -89,7 +89,7 @@ priority= 996

[program:runserver]
command = python %(here)s/manage.py runserver 0.0.0.0:8000 --noreload
environment = PATH="/home/vagrant/.virtualenvs/refinery-platform/bin"
environment = PATH="< @virtualenv %>/bin"
stdout_logfile = %(here)s/log/refinery.log
stdout_logfile_maxbytes = 5MB
stdout_logfile_backups = 4
Expand Down

0 comments on commit 6a28476

Please sign in to comment.