1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00
freebsd-ports/sysutils/bsdstats/files/bsdstats.in
Dmitry Marakasov f836db89c8 - Respect LOCALBASE
- Switch to modern style of rc script handling
- Installation-related nits

PR:		146257
Submitted by:	Anonymous <swell.k@gmail.com>
2010-08-19 03:06:13 +00:00

31 lines
501 B
Bash

#!/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=%%PREFIX%%/etc/periodic/monthly/300.statistics
# default to disable
bsdstats_enable=${bsdstats_enable:-"NO"}
bsdstats_flags=${bsdstats_flags:-"-nodelay"}
run_rc_command "$1"