aboutsummaryrefslogtreecommitdiff
path: root/sysutils/istatd/files/istatd.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/istatd/files/istatd.in')
-rw-r--r--sysutils/istatd/files/istatd.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/sysutils/istatd/files/istatd.in b/sysutils/istatd/files/istatd.in
new file mode 100644
index 000000000000..e65f0d670d73
--- /dev/null
+++ b/sysutils/istatd/files/istatd.in
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# PROVIDE: istatd
+# REQUIRE: LOGIN
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# istatd_enable (bool): Set to NO by default.
+# Set it to YES to enable istatd.
+#
+
+. %%RC_SUBR%%
+
+name="istatd"
+rcvar=${name}_enable
+
+command=%%PREFIX%%/bin/${name}
+
+load_rc_config $name
+
+: ${istatd_enable="NO"}
+: ${istatd_config="%%PREFIX%%/etc/istat.conf"}
+
+command_args="-d -c $istatd_config"
+
+run_rc_command "$1"
+