Skip to content

Commit

Permalink
Fixed init script to support chkconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaugher committed Jun 30, 2014
1 parent 187fde4 commit b48ae1b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion templates/default/init.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
#!/bin/bash
<%= node["zookeeper"]["base_directory"] %>/bin/zkServer.sh $1
### BEGIN INIT INFO
# Provides: zookeeper
# Short-Description: Zookeeper
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Required-Start:
# Required-Stop:
# Should-Start:
# Should-Stop:
# chkconfig: 2345 95 20
# description: Zookeeper
# processname: zookeeper
### END INIT INFO
<%= node["zookeeper"]["base_directory"] %>/bin/zkServer.sh $1

0 comments on commit b48ae1b

Please sign in to comment.