Create mqtt2prometheus.rc

This commit is contained in:
Daniel Schauenberg
2022-07-17 20:48:56 +02:00
committed by GitHub
parent 06cde09749
commit e6587957ed

View File

@@ -0,0 +1,17 @@
#!/bin/sh
#
# PROVIDE: mqtt2prometheus
# REQUIRE: NETWORKING DAEMON
. /etc/rc.subr
name=mqtt2prometheus
rcvar=mqtt2prometheus_enable
mqtt2prometheus_config="/usr/local/etc/mqtt2prometheus/config.yaml"
command="/usr/local/bin/mqtt2prometheus"
start_cmd="/usr/sbin/daemon -T mqtt2prometheus -u nobody -c $command -config=${mqtt2prometheus_config}"
load_rc_config $name
run_rc_command "$1"