summaryrefslogtreecommitdiff
path: root/sysutils/cfengine310/files/cf-execd.in
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2016-12-29 07:11:50 +0000
committerCy Schubert <cy@FreeBSD.org>2016-12-29 07:11:50 +0000
commit5adedb838abb1b22586aa4a262b7050f424180d1 (patch)
tree460156fd66c29f732f74c210fc742879797c6e3a /sysutils/cfengine310/files/cf-execd.in
parentUpgrade to laxstest - including phpmailer 5.2.20. (diff)
Welcome the new cfengine and cfengine-masterfiles 3.10.
Adjust the other cfengine and cfengine-masterfiles ports CONFLICTS to recognize the new cfengine sister ports. Add cfengine and cfengine-masterfiles 310 to their respective metaports.
Notes
Notes: svn path=/head/; revision=429872
Diffstat (limited to 'sysutils/cfengine310/files/cf-execd.in')
-rw-r--r--sysutils/cfengine310/files/cf-execd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/cfengine310/files/cf-execd.in b/sysutils/cfengine310/files/cf-execd.in
new file mode 100644
index 000000000000..1ee33104e76e
--- /dev/null
+++ b/sysutils/cfengine310/files/cf-execd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: cf-execd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf[.local] to enable cf-execd(8)
+#
+# cf_execd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable cf-execd.
+# cf_execd_flags (str): Custom additional arguments to be passed
+# to cf-execd (default empty).
+#
+
+. /etc/rc.subr
+
+name="cf_execd"
+rcvar=cf_execd_enable
+
+command="%%PREFIX%%/sbin/cf-execd"
+
+load_rc_config $name
+
+: ${cf_execd_enable="NO"}
+
+run_rc_command "$1"