Sha256: 43cf1ae9a4594694edbeed463b4a23ed007fd6e87685564fde3350dde80fc6c2

Contents?: true

Size: 734 Bytes

Versions: 3

Compression:

Stored size: 734 Bytes

Contents

#!/bin/sh
##
# PROVIDE: named
# REQUIRE: SERVERS cleanvar
# KEYWORD: shutdown
#

. /etc/rc.subr

name="<%= @service_name %>"
rcvar=`set_rcvar`

# Set some defaults
<%= @service_name %>_enable=${<%= @service_name %>_enable:-"NO"}

pidfile="/var/run/<%= @service_name %>.pid"
command="/usr/local/bin/bluepill"

start_precmd="${command} load <%= node['bluepill']['conf_dir'] %>/<%= @service_name %>.pill"
start_cmd="${command} ${name} start"

status_cmd="${command} ${name} status"

stop_cmd="${command} ${name} stop"
stop_postcmd="${command} ${name} quit"

[ -r <%= node['bluepill']['defaults_dir'] %>/$name ] && . <%= node['bluepill']['defaults_dir'] %>/$name
load_rc_config ${name}

PATH="${PATH}:/usr/local/bin"

run_rc_command "$1"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
from-scratch-0.7.0 cookbooks/bluepill/templates/default/bluepill_init.freebsd.erb
from-scratch-0.6.0 cookbooks/bluepill/templates/default/bluepill_init.freebsd.erb
from-scratch-0.5.0 cookbooks/bluepill/templates/default/bluepill_init.freebsd.erb