Permalink
Browse files

add post_service_start script to absolve postmaster from oom killer

Change-Id: I9864e6c05a8a5062f8ae82ceeac50b2c60aac817
  • Loading branch information...
1 parent bc0c857 commit 4248f0ab1579207c538154daed3465720ed52221 Frank Lu committed Nov 20, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 ng/postgresql/lib/postgresql_service/model.rb
  2. +1 −1 ng/postgresql/lib/postgresql_service/node.rb
@@ -130,6 +130,7 @@ def start_options
:use_spawn => true
}
options[:service_port] = service_port
+ options[:post_start_script] = {:script => "#{File.join(script_dir, "post_service_start.sh")} #{base_dir}", :use_root => true}
options
end
@@ -344,7 +344,7 @@ def create_database_user(instance, binduser, quota_exceeded)
unless global_conn
@logger.error("Fail to connect instance #{name} to create database user")
- return true
+ return false
end
user = binduser.user

0 comments on commit 4248f0a

Please sign in to comment.