freebsd-ports/sysutils/be_agent/files/be-agent.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

28 lines
495 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: be-agent
# REQUIRE: LOGIN
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable be-agent:
#
#be_agent_enable="YES"
. /etc/rc.subr
name=be_agent
rcvar=be_agent_enable
command="%%PREFIX%%/bin/agent.be"
# set defaults
be_agent_enable=${be_agent_enable:-"NO"}
be_agent_cfg=${be_agent_cfg:-"%%PREFIX%%/etc/be-agent.cfg"}
be_agent_flags=${be_agent_flags:-"-c ${be_agent_cfg} &"}
load_rc_config ${name}
run_rc_command "$1"