2009-02-10 22:37:55 +01:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# PROVIDE: cf-execd
|
2011-02-06 03:46:17 +01:00
|
|
|
# REQUIRE: LOGIN
|
2009-02-10 22:37:55 +01:00
|
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
|
|
# Add the following line to /etc/rc.conf[.local] to enable cf-execd(8)
|
|
|
|
#
|
2011-03-13 02:21:18 +01:00
|
|
|
# cf_execd_enable (bool): Set to "NO" by default.
|
2009-02-10 22:37:55 +01:00
|
|
|
# Set it to "YES" to enable cf-execd.
|
2011-03-13 02:21:18 +01:00
|
|
|
# cf_execd_flags (str): Custom additional arguments to be passed
|
2009-02-10 22:37:55 +01:00
|
|
|
# to cf-execd (default empty).
|
|
|
|
#
|
|
|
|
|
2010-03-27 01:15:24 +01:00
|
|
|
. /etc/rc.subr
|
2009-02-10 22:37:55 +01:00
|
|
|
|
2011-03-13 02:21:18 +01:00
|
|
|
name="cf_execd"
|
2012-01-14 09:57:23 +01:00
|
|
|
rcvar=cf_execd_enable
|
2009-02-10 22:37:55 +01:00
|
|
|
|
2011-03-13 02:21:18 +01:00
|
|
|
command="%%PREFIX%%/sbin/cf-execd"
|
2009-02-10 22:37:55 +01:00
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
|
2009-12-22 00:28:42 +01:00
|
|
|
: ${cf_execd_enable="NO"}
|
2009-02-10 22:37:55 +01:00
|
|
|
|
|
|
|
run_rc_command "$1"
|