View | Details | Raw Unified | Return to bug 281453 | Differences between
and this patch

Collapse All | Expand All

(-)b/sysutils/ipmi_exporter/files/ipmi_exporter.in (-1 / +7 lines)
Lines 11-16 Link Here
11
#			Default: NO
11
#			Default: NO
12
# ipmi_exporter_config (str):	Set to the path of configuration file.
12
# ipmi_exporter_config (str):	Set to the path of configuration file.
13
#			Default: ""
13
#			Default: ""
14
# ipmi_exporter_listen_address (str):	Set to the IP or hostname and port to bind to.
15
#			Default: ":9290"
16
14
17
15
. /etc/rc.subr
18
. /etc/rc.subr
16
name=ipmi_exporter
19
name=ipmi_exporter
Lines 19-29 load_rc_config $name Link Here
19
22
20
: ${ipmi_exporter_enable:="NO"}
23
: ${ipmi_exporter_enable:="NO"}
21
: ${ipmi_exporter_config:=""}
24
: ${ipmi_exporter_config:=""}
25
: ${ipmi_exporter_listen_address:=":9290"}
22
26
23
pidfile="/var/run/${name}.pid"
27
pidfile="/var/run/${name}.pid"
24
command="/usr/sbin/daemon"
28
command="/usr/sbin/daemon"
25
procname="%%PREFIX%%/bin/${name}"
29
procname="%%PREFIX%%/bin/${name}"
26
command_args="-S -p ${pidfile} ${procname} --config.file=\"${ipmi_exporter_config}\""
30
command_args="-S -p ${pidfile} ${procname} \
31
    --web.listen-address=${ipmi_exporter_listen_address} \
32
    --config.file=\"${ipmi_exporter_config}\""
27
start_precmd="${name}_precmd"
33
start_precmd="${name}_precmd"
28
34
29
ipmi_exporter_precmd()
35
ipmi_exporter_precmd()

Return to bug 281453