From ba7791374fa4c4c416faf3fc1738493679d0c71c 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 --- manifests/init.pp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 520517d..58b936d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -113,9 +113,4 @@ class elasticsearch ( group => 'root', mode => '0644', } - - service { 'elasticsearch': - ensure => running, - require => Package['elasticsearch'], - } }