projects/aports·blob master · refs

22 lines · 397 B

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