mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-13 00:10:04 +03:00
19 lines
531 B
Plaintext
19 lines
531 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2016-2018 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
description="Prometheus MongoDB exporter"
|
|
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
|
|
user=${user:-${RC_SVCNAME}}
|
|
group=${group:-${RC_SVCNAME}}
|
|
output_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
|
|
error_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
|
|
|
|
command="/usr/bin/mongodb_exporter"
|
|
command_args="${command_args:--mongodb.uri=http://localhost:27017}"
|
|
command_background="true"
|
|
|
|
depend() {
|
|
after net
|
|
}
|