#!/bin/sh

# PROVIDE: chef
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name="chef"
pidfile="<%= node["chef_client"]["run_path"] %>/${name}.pid"
command="<%= @client_bin %>"
command_interpreter="<%= RbConfig.ruby %>"
command_args="-i <%= node["chef_client"]["interval"] %> -s <%= node["chef_client"]["splay"] %> -d -P <%= node["chef_client"]["run_path"] %>/${name}.pid"
load_rc_config $name
run_rc_command "$1"

#!/bin/sh

# PROVIDE: chef
# REQUIRE: LOGIN
# KEYWORD: shutdown

. /etc/rc.subr

name="chef"
pidfile="<%= node["chef_client"]["run_path"] %>/${name}.pid"
command="<%= @client_bin %>"
command_interpreter="<%= RbConfig.ruby %>"
command_args="-i <%= node["chef_client"]["interval"] %> -s <%= node["chef_client"]["splay"] %> -d -P ${pidfile}"
load_rc_config $name
run_rc_command "$1"

Remove duplication from rc.d script template for FreeBSD
Remove duplication from rc.d script template for FreeBSD
