Sha256: ac051daf8e4068341eb2219f81aeba5c1043d34a84c986fa2112c084f7c8ed9a
Contents?: true
Size: 790 Bytes
Versions: 6
Compression:
Stored size: 790 Bytes
Contents
#!/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 %> [ -r <%= node['bluepill']['defaults_dir'] %>/$SERVICE_NAME ] && . <%= node['bluepill']['defaults_dir'] %>/$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
Version data entries
6 entries across 3 versions & 1 rubygems