2
# Startup script for chef-client
5
# description: Client component of the Chef systems integration framework.
6
# processname: chef-client
8
# config: /etc/sysconfig/chef-client
9
# pidfile: /var/run/chef/chef-client.pid
11
# Source function library
12
. /etc/init.d/functions
14
[ -f /etc/sysconfig/chef-client ] && . /etc/sysconfig/chef-client
17
pidfile=${PIDFILE-/var/run/chef/chef-client.pid}
18
lockfile=${LOCKFILE-/var/lock/subsys/$prog}
19
config=${CONFIG-/etc/chef/client.rb}
20
logfile=${LOGFILE-/var/log/chef/chef-client.log}
24
echo -n "Starting $prog:"
25
daemon chef-client -d -c "$config" -L "$logfile" "$OPTIONS" ">/dev/null"
28
[ $RETVAL -eq 0 ] && touch ${lockfile}
33
echo -n "Stopping $prog: "
34
if [ -f $pidfile ]; then
37
if [ $RETVAL -ne 0 ]; then
61
if [ -f $lockfile ]; then
70
echo "Usage: $0 {start|stop|restart|condrestart|status}"