diff options
Diffstat (limited to 'sysutils/be_agent/files/be-agent.in')
-rw-r--r-- | sysutils/be_agent/files/be-agent.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/be_agent/files/be-agent.in b/sysutils/be_agent/files/be-agent.in new file mode 100644 index 000000000000..509b2f95ce7b --- /dev/null +++ b/sysutils/be_agent/files/be-agent.in @@ -0,0 +1,28 @@ +#!/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" |