Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
add post_service_start script to absolve postmaster from oom killer
Browse files Browse the repository at this point in the history
Change-Id: I9864e6c05a8a5062f8ae82ceeac50b2c60aac817
  • Loading branch information
Frank Lu committed Dec 5, 2012
1 parent bc0c857 commit 4248f0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ng/postgresql/lib/postgresql_service/model.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def start_options
:use_spawn => true :use_spawn => true
} }
options[:service_port] = service_port options[:service_port] = service_port
options[:post_start_script] = {:script => "#{File.join(script_dir, "post_service_start.sh")} #{base_dir}", :use_root => true}
options options
end end


Expand Down
2 changes: 1 addition & 1 deletion ng/postgresql/lib/postgresql_service/node.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def create_database_user(instance, binduser, quota_exceeded)


unless global_conn unless global_conn
@logger.error("Fail to connect instance #{name} to create database user") @logger.error("Fail to connect instance #{name} to create database user")
return true return false
end end


user = binduser.user user = binduser.user
Expand Down

0 comments on commit 4248f0a

Please sign in to comment.