You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-admin/chef-expander/files/initd/chef-expander

23 lines
682 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
CHEF_EXPANDER_LOGFILE=${CHEF_EXPANDER_LOGFILE:-/var/log/chef/expander.log}
CONFIGFILE=${CONFIGFILE:-/etc/chef/solr.rb}
pidfile=${CHEF_EXPANDER_PIDFILE:-/var/run/chef/expander.pid}
command=${CHEF_EXPANDER_BINARY:-/usr/bin/chef-expander}
command_args="-d -P ${pidfile} -L ${CHEF_EXPANDER_LOGFILE} -c ${CONFIGFILE} ${CHEF_EXPANDER_OPTS}"
user=${CHEF_USER:-chef}
group=${CHEF_GROUP:-chef}
depend() {
need net chef-solr
}
start_pre() {
checkpath -q -d -m 0750 -o ${user}:${group} /etc/chef /var/{lib,log,run}/chef
checkpath -q -f -m 0600 ${CONFIGFILE}
}