~dricottone/huttese-apk

ref: 5606bb981ca7c098d40e632eced725496fa064f0 huttese-apk/sr.ht/prometheus/prometheus.initd -rw-r--r-- 598 bytes
5606bb98 — Drew DeVault Move prometheus packages into main repo 4 years ago
                                                                                
fe42a2f7 Drew DeVault
81d9b5e2 Drew DeVault
fe42a2f7 Drew DeVault
34681b55 Drew DeVault
fe42a2f7 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run
name="prometheus"
description="prometheus monitoring system & time series database"
supervisor=supervise-daemon
supervise_daemon_args="-1 /var/log/prometheus.log -2 /var/log/prometheus.log"
command=/usr/bin/prometheus
command_args="--config.file=$config_file \
	--storage.tsdb.path=$storage_path"
command_user="prometheus:prometheus"
pidfile="/run/${RC_SVCNAME}.pid"

start_pre() {
	checkpath -f "/var/log/prometheus.log" -m 644 -o prometheus:prometheus
	checkpath -f "$config_file" -m 740 -o prometheus:prometheus
	checkpath -d "$storage_path" -m 755 -o prometheus:prometheus
}