aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdstats
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@FreeBSD.org>2007-04-28 23:54:03 +0000
committerMarc G. Fournier <scrappy@FreeBSD.org>2007-04-28 23:54:03 +0000
commit868cf10ec195a9683b131653031633a4510175e5 (patch)
tree0c7c72aa4d684c819444bb9918a8f1d363dc5b00 /sysutils/bsdstats
parent0d05a061a82f58249879b266e6e3694a90a44754 (diff)
downloadports-868cf10ec195a9683b131653031633a4510175e5.tar.gz
ports-868cf10ec195a9683b131653031633a4510175e5.zip
Notes
Diffstat (limited to 'sysutils/bsdstats')
-rw-r--r--sysutils/bsdstats/files/bsdstats.in30
-rw-r--r--sysutils/bsdstats/files/bsdstats.sh30
2 files changed, 60 insertions, 0 deletions
diff --git a/sysutils/bsdstats/files/bsdstats.in b/sysutils/bsdstats/files/bsdstats.in
new file mode 100644
index 000000000000..a31b4a7efe0f
--- /dev/null
+++ b/sysutils/bsdstats/files/bsdstats.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: bsdstats
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+# bsdstats is disabled by default, if you have configuration file
+#
+# Add the following line to /etc/rc.conf to enable bsdstats:
+#
+#bsdstats_enable="YES"
+#
+
+. /etc/rc.subr
+
+load_rc_config bsdstats
+
+name=bsdstats
+rcvar=`set_rcvar`
+
+command=/usr/local/etc/periodic/monthly/300.statistics
+
+# default to disable
+bsdstats_enable=${bsdstats_enable:-"NO"}
+bsdstats_flags=${bsdstats_flags:-"-nodelay"}
+
+run_rc_command "$1"
diff --git a/sysutils/bsdstats/files/bsdstats.sh b/sysutils/bsdstats/files/bsdstats.sh
new file mode 100644
index 000000000000..8c03bc0d9472
--- /dev/null
+++ b/sysutils/bsdstats/files/bsdstats.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# $FreeBSD: /tmp/pcvs/ports/sysutils/bsdstats/files/Attic/bsdstats.sh,v 1.1 2007-04-28 23:54:03 scrappy Exp $
+#
+
+# PROVIDE: bsdstats
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+
+# bsdstats is disabled by default, if you have configuration file
+#
+# Add the following line to /etc/rc.conf to enable bsdstats:
+#
+#bsdstats_enable="YES"
+#
+
+. /etc/rc.subr
+
+load_rc_config bsdstats
+
+name=bsdstats
+rcvar=`set_rcvar`
+
+command=/usr/local/etc/periodic/monthly/300.statistics
+
+# default to disable
+bsdstats_enable=${bsdstats_enable:-"NO"}
+bsdstats_flags=${bsdstats_flags:-"-nodelay"}
+
+run_rc_command "$1"