#!/sbin/openrc-run name="$SVCNAME" directory="{{ prometheus_conf_dir }}" command=/usr/bin/snmp_exporter command_args="--config.file={{ prometheus_snmp_file | quote }} --web.listen-address={{ ('127.0.0.1:' ~ prometheus_snmp_port) | quote }}" command_user="{{ prometheus_user }}:{{ prometheus_group }}" pidfile="/var/run/$SVCNAME.pid" command_background=true start_stop_daemon_args="--stdout-logger logger --stderr-logger logger" depend() { after net }