Switch back to correct way of setting limits for server processes

This commit is contained in:
james.page@ubuntu.com 2014-06-30 11:15:03 +01:00
parent d413855fbb
commit 3b0cdaf1de
3 changed files with 4 additions and 7 deletions

View File

@ -509,8 +509,7 @@ def config_changed():
add_source(config('source'), config('key'))
apt_update(fatal=True)
# Copy in defaults file for updated ulimits
shutil.copyfile('templates/rabbitmq.limits.conf',
'/etc/security/limits.d/rabbitmq.limits.conf')
shutil.copyfile('templates/rabbitmq-server', '/etc/default/rabbitmq-server')
# Install packages to ensure any changes to source
# result in an upgrade if applicable.
apt_install(rabbit.PACKAGES, fatal=True)

View File

@ -0,0 +1,3 @@
# Generated by juju
# bump ulimit so rabbit can support lots of connections
ulimit -n 65536

View File

@ -1,5 +0,0 @@
# Generated by juju
# bump ulimit so rabbit can support lots of connections
rabbitmq soft nofile 65536
rabbitmq hard nofile 65536