From eb49ff63973a8e0d025a9be30b70f3d5bd7688c6 Mon Sep 17 00:00:00 2001 From: Andrian Jardan Date: Thu, 24 Apr 2014 21:54:33 +0300 Subject: [PATCH] Added Debian specific configuration to the init script Closes #205 Closes #204 --- templates/default/elasticsearch.init.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/default/elasticsearch.init.erb b/templates/default/elasticsearch.init.erb index d9e7df9a5..4f106772d 100644 --- a/templates/default/elasticsearch.init.erb +++ b/templates/default/elasticsearch.init.erb @@ -2,10 +2,22 @@ # # elasticsearch # +<% if node.platform_family?('debian') %> +### BEGIN INIT INFO +# Provides: elasticsearch +# Required-Start: $network $remote_fs $named +# Required-Stop: $network $remote_fs $named +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Starts elasticsearch +# Description: Starts elasticsearch using start-stop-daemon +### END INIT INFO +<% else %> # chkconfig: - 57 47 # description: elasticsearch # processname: elasticsearch # config: <%= node[:elasticsearch][:path][:conf] %>/elasticsearch.yml +<% end %> # Source networking configuration #