~dricottone/huttese-apk

ref: 3312d4945db7d629dae2e73784158d74eb96c9a6 huttese-apk/prometheus/alertmanager/alertmanager.initd -rw-r--r-- 470 bytes
3312d494 — Drew DeVault Normalize alertmanager package 5 years ago
                                                                                
06c053e6 Drew DeVault
3312d494 Drew DeVault
06c053e6 Drew DeVault
3312d494 Drew DeVault
06c053e6 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/sbin/openrc-run
name="alertmanager"
description="alert manager for the prometheus monitoring system"
supervisor=supervise-daemon
command=/usr/bin/alertmanager
command_args="--config.file=$config_file \
	--storage.path=$storage_path"
command_background=true
command_user="prometheus:prometheus"
pidfile="/run/${RC_SVCNAME}.pid"

start_pre() {
	checkpath -f "$config_file" -m 740 -o prometheus:prometheus
	checkpath -d "$storage_path" -m 755 -o prometheus:prometheus
}