Lines 17-29
Link Here
|
17 |
rcvar=${name}_enable |
17 |
rcvar=${name}_enable |
18 |
load_rc_config $name |
18 |
load_rc_config $name |
19 |
|
19 |
|
20 |
: ${impi_exporter_enable:="NO"} |
20 |
: ${ipmi_exporter_enable:="NO"} |
21 |
: ${impi_exporter_config:=""} |
21 |
: ${ipmi_exporter_config:=""} |
22 |
|
22 |
|
23 |
pidfile="/var/run/${name}.pid" |
23 |
pidfile="/var/run/${name}.pid" |
24 |
command="/usr/sbin/daemon" |
24 |
command="/usr/sbin/daemon" |
25 |
procname="/usr/local/bin/${name}" |
25 |
procname="/usr/local/bin/${name}" |
26 |
command_args="-S -p ${pidfile} ${procname} --config.file=\"${impi_exporter_config}\"" |
26 |
command_args="-S -p ${pidfile} ${procname} --config.file=\"${ipmi_exporter_config}\"" |
27 |
start_precmd="${name}_precmd" |
27 |
start_precmd="${name}_precmd" |
28 |
|
28 |
|
29 |
ipmi_exporter_precmd() |
29 |
ipmi_exporter_precmd() |