summaryrefslogtreecommitdiff
path: root/net-mgmt/collectd5/files/collectd.in
blob: 90abfad43a4dabfaf9fd7e4eeb6b3b17fa17f12c (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
#!/bin/sh

# PROVIDE: collectd
# REQUIRE: LOGIN
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# collectd_enable (bool):       Set to NO by default.
#               Set it to YES to enable collectd.
# collectd_flags (string):      Set to "" by default.
#               Additional flags to collectd, see manual page.
#

. %%RC_SUBR%%

name="collectd"
rcvar=${name}_enable

command=%%PREFIX%%/sbin/${name}

load_rc_config $name

: ${collectd_enable="NO"}

run_rc_command "$1"