Skip to content

Commit

Permalink
Merge pull request #94 from tykeal/fix_file_limit
Browse files Browse the repository at this point in the history
Fix file limit for Nexus 3 deployments
  • Loading branch information
pranav authored Oct 27, 2017
2 parents 7dffd13 + bf5c8fc commit 83f146e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
owner => 'root',
group => 'root',
content => template('nexus/nexus.systemd.erb'),
} ->
service { 'nexus':
}
-> service { 'nexus':
ensure => running,
name => 'nexus',
enable => true,
Expand Down
3 changes: 2 additions & 1 deletion templates/nexus.systemd.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ After=network.target

[Service]
Type=forking
LimitNOFILE=65536
ExecStart=<%= scope.lookupvar('nexus::service::nexus_script') %> start
ExecStop=<%= scope.lookupvar('nexus::service::nexus_script') %> stop
User=<%= scope.lookupvar('nexus::service::nexus_user') %>
Group=<%= scope.lookupvar('nexus::service::nexus_group') %>
Restart=on-abort

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit 83f146e

Please sign in to comment.