gentoo/app-metrics/mongodb_exporter/files/mongodb_exporter-1.initd
Arthur Zamarin 60a1069063
app-metrics/mongodb_exporter: add 0.47.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-10-02 15:03:04 +03:00

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
}