blob: 73b7be928235e9e075826d771bad420457441f46 (
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
|
#!/bin/sh
# PROVIDE: istatd
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# istatd_enable (bool): Set to NO by default.
# Set it to YES to enable istatd.
#
. /etc/rc.subr
name="istatd"
rcvar=istatd_enable
command=%%PREFIX%%/bin/${name}
load_rc_config $name
: ${istatd_enable="NO"}
: ${istatd_config="%%PREFIX%%/etc/istat.conf"}
command_args="-d -c $istatd_config"
run_rc_command "$1"
|