mirror of
https://github.com/hikhvar/mqtt2prometheus.git
synced 2026-02-14 09:59:52 +00:00
Create mqtt2prometheus.rc
This commit is contained in:
committed by
GitHub
parent
06cde09749
commit
e6587957ed
17
freebsd/mqtt2prometheus.rc
Normal file
17
freebsd/mqtt2prometheus.rc
Normal 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"
|
||||||
Reference in New Issue
Block a user