~dricottone/huttese-apk

ref: ccc127a4f043e79c3d4a60645e8b877aa198447b huttese-apk/prometheus/alertmanager/alertmanager.initd -rw-r--r-- 604 bytes
ccc127a4 — Drew DeVault sr.ht/py3-cairosvg: upgrade to 2.4.2 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/sbin/openrc-run
name="alertmanager"
description="alert manager for the prometheus monitoring system"
supervisor=supervise-daemon
supervise_daemon_args="-1 /var/log/alertmanager.log -2 /var/log/alertmanager.log"
command=/usr/bin/alertmanager
command_args="--config.file=$config_file \
	--storage.path=$storage_path"
command_user="prometheus:prometheus"
pidfile="/run/${RC_SVCNAME}.pid"

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