summaryrefslogtreecommitdiff
path: root/sysutils/bsdstats/files/bsdstats.in
blob: 7a21b99e5e4c2e8b0dee536578aad63771a30254 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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=bsdstats_enable

command=%%PREFIX%%/etc/periodic/monthly/300.statistics

# default to disable
bsdstats_enable=${bsdstats_enable:-"NO"}
bsdstats_flags=${bsdstats_flags:-"-nodelay"}

run_rc_command "$1"