Issue with this resource agent is, that `postgress` password is created at the end of server.rb, but service is started before. Because of this this service will never start properly.