Lines 19-29
load_rc_config $name
Link Here
|
19 |
|
19 |
|
20 |
: ${ipmi_exporter_enable:="NO"} |
20 |
: ${ipmi_exporter_enable:="NO"} |
21 |
: ${ipmi_exporter_config:=""} |
21 |
: ${ipmi_exporter_config:=""} |
|
|
22 |
: ${ipmi_exporter_listen_address:=":9290"} |
22 |
|
23 |
|
23 |
pidfile="/var/run/${name}.pid" |
24 |
pidfile="/var/run/${name}.pid" |
24 |
command="/usr/sbin/daemon" |
25 |
command="/usr/sbin/daemon" |
25 |
procname="%%PREFIX%%/bin/${name}" |
26 |
procname="%%PREFIX%%/bin/${name}" |
26 |
command_args="-S -p ${pidfile} ${procname} --config.file=\"${ipmi_exporter_config}\"" |
27 |
command_args="-S -p ${pidfile} ${procname} \ |
|
|
28 |
--web.listen-address=${ipmi_exporter_listen_address} \ |
29 |
--config.file=\"${ipmi_exporter_config}\"" |
27 |
start_precmd="${name}_precmd" |
30 |
start_precmd="${name}_precmd" |
28 |
|
31 |
|
29 |
ipmi_exporter_precmd() |
32 |
ipmi_exporter_precmd() |