Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/nginx/manifests/init.pp

Issue 9321094: Do not restart nginx on changes, do a reload instead (Closed)
Patch Set: Created Feb. 6, 2013, 12:04 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class nginx ( 1 class nginx (
2 $worker_processes = $nginx::params::worker_processes, 2 $worker_processes = $nginx::params::worker_processes,
3 $worker_connections = $nginx::params::worker_connections 3 $worker_connections = $nginx::params::worker_connections
4 ) inherits nginx::params { 4 ) inherits nginx::params {
5 5
6 package {'nginx': 6 package {'nginx':
7 ensure => present 7 ensure => present
8 } 8 }
9 9
10 File { 10 File {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 # file {'/etc/logrotate.d/nginx': 48 # file {'/etc/logrotate.d/nginx':
49 # source => 'nginx/logrotate', 49 # source => 'nginx/logrotate',
50 # require => File['/etc/nginx/nginx.conf'] 50 # require => File['/etc/nginx/nginx.conf']
51 # } 51 # }
52 52
53 service {'nginx': 53 service {'nginx':
54 ensure => running, 54 ensure => running,
55 enable => true, 55 enable => true,
56 hasrestart => true, 56 restart => '/etc/init.d/nginx reload',
57 hasstatus => true, 57 hasstatus => true,
58 require => File['/etc/nginx/nginx.conf'] 58 require => File['/etc/nginx/nginx.conf']
59 } 59 }
60 } 60 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld