summaryrefslogtreecommitdiff
path: root/sysutils/bsdstats/files/bsdstats.in
blob: 8384504135047cbed9de619ccbc017120149a367 (plain)
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
#!/bin/sh

# 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"