Skip to content

Commit

Permalink
Added Debian specific configuration to the init script
Browse files Browse the repository at this point in the history
Closes #205
Closes #204
  • Loading branch information
Andrian Jardan authored and karmi committed May 6, 2014
1 parent 15c51a6 commit eb49ff6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/default/elasticsearch.init.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit eb49ff6

Please sign in to comment.