Permalink
Browse files

increase_shared_memory uses LWRP

  • Loading branch information...
Brian Cunnie and Doc Ritezel
Brian Cunnie and Doc Ritezel committed Jan 8, 2013
1 parent 6b82a12 commit 32950b809c239ad97136eba8cb2b8ee5e1733166
Showing with 7 additions and 8 deletions.
  1. +7 −8 recipes/increase_shared_memory.rb
@@ -1,12 +1,11 @@
# See http://willbryant.net/software/mac_os_x/postgres_initdb_fatal_shared_memory_error_on_leopard
-# Make memory setting persist across reboots...
-cookbook_file "/etc/sysctl.conf" do
- source "sysctl.conf"
- mode "0644"
- owner "root"
+pivotal_workstation_sysctl "increase shared memory allocation size" do
+ name "kern.sysv.shmall"
+ value "65536"
end
-# ...and also change them for this session.
-execute "sysctl -w kern.sysv.shmall=65536"
-execute "sysctl -w kern.sysv.shmmax=16777216"
+pivotal_workstation_sysctl "increase shared memory max" do
+ name "kern.sysv.shmmax"
+ value "16777216"
+end

0 comments on commit 32950b8

Please sign in to comment.