| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | name="prometheus-smtp2go-exporter" |
| 4 | |
| 5 | command_user="prometheus:prometheus" |
| 6 | |
| 7 | command="/usr/sbin/smtp2go-exporter" |
| 8 | command_args="-apiKey $APIKEY $ARGS" |
| 9 | command_background="yes" |
| 10 | |
| 11 | logdir="/var/log/prometheus" |
| 12 | error_log="$logdir/${SVCNAME}.log" |
| 13 | pidfile="/var/run/${SVCNAME}.pid" |
| 14 | |
| 15 | depend() { |
| 16 | need net |
| 17 | after firewall |
| 18 | } |
| 19 | |
| 20 | start_pre() { |
| 21 | checkpath -f -o $command_user -m644 $error_log |
| 22 | } |