summaryrefslogtreecommitdiff
path: root/sysutils/cfengine324/files/cf-serverd.in
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2024-07-23 06:13:14 -0700
committerCy Schubert <cy@FreeBSD.org>2024-07-23 07:00:38 -0700
commit35ee737900646938ba4fc5eaaf2a88a36c77e9a0 (patch)
tree6b56149b8e50bd2dfecca64198809015a508245c /sysutils/cfengine324/files/cf-serverd.in
parentnet-mgmt/zabbix7-frontend: Fix pkg-plist and thus build (diff)
sysutils/cfengine*: Introduce crengine324 and cfengine-masterfiles324
Add ports for the new cfengine and cfengine-masterfiles 3.24.0. Make cfengine324 and cfengine-masterfiles324 the default cfengine ports/packages.
Diffstat (limited to 'sysutils/cfengine324/files/cf-serverd.in')
-rw-r--r--sysutils/cfengine324/files/cf-serverd.in26
1 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/cfengine324/files/cf-serverd.in b/sysutils/cfengine324/files/cf-serverd.in
new file mode 100644
index 000000000000..938274887353
--- /dev/null
+++ b/sysutils/cfengine324/files/cf-serverd.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# PROVIDE: cf-serverd
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf[.local] to enable cf-serverd(8)
+#
+# cf_serverd_enable (bool): Set to "NO" by default.
+# Set it to "YES" to enable cf-serverd.
+# cf_serverd_flags (str): Custom additional arguments to be passed
+# to cf-serverd (default empty).
+#
+
+. /etc/rc.subr
+
+name="cf_serverd"
+rcvar=cf_serverd_enable
+
+command="%%PREFIX%%/bin/cf-serverd"
+
+load_rc_config $name
+
+: ${cf_serverd_enable="NO"}
+
+run_rc_command "$1"