From c5bd6f0fcb0ce01394f1efdb946205e7fc1f4746 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 26 Feb 2014 01:50:38 +0000 Subject: [PATCH] Don't ensure elasticsearch service is running The package maintainer scripts start elasticsearch when it gets installed, but it seems to return control before the pidfile is created which allows puppet to race for it and ultimately launch a second daemon resulting in an OOM condition. It's configured to start at boot anyway, so the puppet ensure running isn't buying us much. Change-Id: I1b374f90c198b9cb73d412fe63b439623f434d9a --- modules/elasticsearch/manifests/init.pp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/elasticsearch/manifests/init.pp b/modules/elasticsearch/manifests/init.pp index 520517d474..58b936da19 100644 --- a/modules/elasticsearch/manifests/init.pp +++ b/modules/elasticsearch/manifests/init.pp @@ -113,9 +113,4 @@ class elasticsearch ( group => 'root', mode => '0644', } - - service { 'elasticsearch': - ensure => running, - require => Package['elasticsearch'], - } }