summaryrefslogtreecommitdiff
path: root/net-mgmt/flowd/files/flowd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/flowd/files/flowd.in')
-rw-r--r--net-mgmt/flowd/files/flowd.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-mgmt/flowd/files/flowd.in b/net-mgmt/flowd/files/flowd.in
new file mode 100644
index 000000000000..b28589667e97
--- /dev/null
+++ b/net-mgmt/flowd/files/flowd.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: flowd
+# REQUIRE: DAEMON
+#
+# Add the following lines to /etc/rc.conf to run ipcad:
+#
+# flowd_enable (bool): Set it to "YES" to enable flowd.
+# Default is "NO".
+# flowd_conf (file): Local config file.
+# Default is "%%PREFIX%%/etc/flowd.conf".
+#
+
+. %%RC_SUBR%%
+
+name="flowd"
+rcvar=${name}_enable
+load_rc_config ${name}
+
+: ${flowd_enable="NO"}
+: ${flowd_conf="%%PREFIX%%/etc/flowd.conf"}
+: ${flowd_flags=""}
+
+required_files="${flowd_conf}"
+command="%%PREFIX%%/sbin/flowd"
+command_args="-f ${flowd_conf}"
+
+run_rc_command "$1"