summaryrefslogtreecommitdiff
path: root/net/vnstat/files/vnstatd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/vnstat/files/vnstatd.sh')
-rwxr-xr-xnet/vnstat/files/vnstatd.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/vnstat/files/vnstatd.sh b/net/vnstat/files/vnstatd.sh
new file mode 100755
index 00000000000..9a60c49ee40
--- /dev/null
+++ b/net/vnstat/files/vnstatd.sh
@@ -0,0 +1,20 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: vnstatd.sh,v 1.1.1.1 2009/11/19 15:48:19 sborrill Exp $
+#
+
+# PROVIDE: vnstatd
+# REQUIRE: network mountcritlocal
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="vnstatd"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+pidfile="/var/run/${name}.pid"
+command_args="-d -p $pidfile"
+required_dirs="@VARBASE@/db/vnstat"
+required_files="@PKG_SYSCONFDIR@/vnstat.conf"
+
+load_rc_config $name
+run_rc_command "$1"