#!/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 }