Initial Chef repository

This commit is contained in:
Greg Karékinian
2015-07-21 19:45:23 +02:00
parent 7e5401fc71
commit ee4079fa85
1151 changed files with 185163 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#!/bin/sh
#
# Author: Jamie Winsor (<jamie@vialstudios.com>)
#
# chkconfig: 345 99 1
# Description: Bluepill loader for <%= @service_name %>
# Provides: <%= @service_name %>
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
BLUEPILL_BIN=<%= node['bluepill']['bin'] %>
BLUEPILL_CONFIG=<%= @config_file %>
SERVICE_NAME=<%= @service_name %>
case "$1" in
start)
echo "Loading bluepill configuration for $SERVICE_NAME "
$BLUEPILL_BIN load $BLUEPILL_CONFIG
;;
stop)
$BLUEPILL_BIN $SERVICE_NAME stop
$BLUEPILL_BIN $SERVICE_NAME quit
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac