aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/collectd5/files
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-11-02 06:19:09 +0800
committermiwi <miwi@FreeBSD.org>2008-11-02 06:19:09 +0800
commitbecfc7a8b76c8a4448813f6f5584d181ad554b9f (patch)
tree8ee3add3632ab51ebb7202c8fd665a7971b0c61c /net-mgmt/collectd5/files
parentf2c17bb9890e77eea23b2fdce1cdc626196f127c (diff)
downloadfreebsd-ports-gnome-becfc7a8b76c8a4448813f6f5584d181ad554b9f.tar.gz
freebsd-ports-gnome-becfc7a8b76c8a4448813f6f5584d181ad554b9f.tar.zst
freebsd-ports-gnome-becfc7a8b76c8a4448813f6f5584d181ad554b9f.zip
- Update to 4.5.1
PR: 128391 Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer)
Diffstat (limited to 'net-mgmt/collectd5/files')
-rw-r--r--net-mgmt/collectd5/files/collectd.in2
-rw-r--r--net-mgmt/collectd5/files/collectdmon.in27
2 files changed, 28 insertions, 1 deletions
diff --git a/net-mgmt/collectd5/files/collectd.in b/net-mgmt/collectd5/files/collectd.in
index 5ec218f3b27e..0dd6c3f38847 100644
--- a/net-mgmt/collectd5/files/collectd.in
+++ b/net-mgmt/collectd5/files/collectd.in
@@ -9,7 +9,7 @@
# collectd_enable (bool): Set to NO by default.
# Set it to YES to enable collectd.
# collectd_flags (string): Set to "" by default.
-# Additional flags to collecd, see manual page.
+# Additional flags to collectd, see manual page.
#
. %%RC_SUBR%%
diff --git a/net-mgmt/collectd5/files/collectdmon.in b/net-mgmt/collectd5/files/collectdmon.in
new file mode 100644
index 000000000000..3d934e8223b2
--- /dev/null
+++ b/net-mgmt/collectd5/files/collectdmon.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: collectdmon
+# REQUIRE: LOGIN
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# collectdmon_enable (bool): Set to NO by default.
+# Set it to YES to enable collectd.
+# collectdmon_flags (string): Set to "-c %%PREFIX%%/sbin/collectd" by default.
+# Additional flags to collectdmon, see manual page.
+#
+
+. %%RC_SUBR%%
+
+name="collectdmon"
+rcvar=${name}_enable
+
+command=%%PREFIX%%/sbin/${name}
+
+load_rc_config $name
+
+: ${collectdmon_enable="NO"}
+: ${collectdmon_flags="-c %%PREFIX%%/sbin/collectd"}
+
+run_rc_command "$1"