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/files/initd/chef-client

20 lines
503 B

#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
CONFIGFILE=${CONFIGFILE:-/etc/chef/client.rb}
INTERVAL=${INTERVAL:-1800}
SPLAY=${SPLAY:-20}
command=${CHEF_CLIENT_BINARY:-/usr/bin/chef-client}
command_args="-d -c ${CONFIGFILE} -i ${INTERVAL} -s ${SPLAY} ${CHEF_CLIENT_OPTS}"
pidfile=${CHEF_CLIENT_PIDFILE:-/var/run/chef/client.pid}
depend() {
need net
}
start_pre() {
checkpath -q -d -m 0755 -o chef:chef /var/run/chef
}