mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
f836db89c8
- Switch to modern style of rc script handling - Installation-related nits PR: 146257 Submitted by: Anonymous <swell.k@gmail.com>
31 lines
501 B
Bash
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"
|