Skip to content

Commit

Permalink
#3100: reduce upstart init script syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff1evesque committed Nov 12, 2017
1 parent 50b49b3 commit 6e37767
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@

## dos2unix: convert clrf (windows to linux) in case host machine is
## windows.
file { '/etc/init/start_gunicorn_api.conf':
file { '/etc/init/gunicorn_api.conf':
ensure => file,
content => dos2unix(template($template_path_api)),
require => Class['compiler::initial_compile'],
Expand All @@ -104,7 +104,7 @@

## dos2unix: convert clrf (windows to linux) in case host machine is
## windows.
file { '/etc/init/start_gunicorn_web.conf':
file { '/etc/init/gunicorn_web.conf':
ensure => file,
content => dos2unix(template($template_path_web)),
require => Class['compiler::initial_compile'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@
## run gunicorn
if $vagrant_mounted {
# ensure service starts at boot
service { 'start_gunicorn_api':
service { 'gunicorn_api':
ensure => 'running',
enable => true,
require => Class['webserver::service'],
}
# ensure service starts at boot
service { 'start_gunicorn_web':
service { 'gunicorn_web':
ensure => 'running',
enable => true,
require => Class['webserver::service'],
}
}
else {
## run and restart when needed
service { 'start_gunicorn_api':
service { 'gunicorn_api':
ensure => 'running',
require => Class['webserver::service'],
}
service { 'start_gunicorn_web':
service { 'gunicorn_web':
ensure => 'running',
require => Class['webserver::service'],
}
Expand Down

0 comments on commit 6e37767

Please sign in to comment.