~dricottone/huttese-apk

ref: fe42a2f7f828e4f2db8c75af22052498add37e7b huttese-apk/prometheus/alertmanager/alertmanager.initd -rw-r--r-- 438 bytes
fe42a2f7 — Drew DeVault prometheus/prometheus: new APKBUILD 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/openrc-run
name="alertmanager"
description="prometheus alertmanager"

depend() {
	need net
}

start() {
	ebegin "Starting $name"
	start-stop-daemon -C --background --make-pidfile --pidfile /run/$name.pid \
		--exec /usr/bin/alertmanager -- \
		--config.file=/etc/alertmanager/alertmanager.yml
	eend $?
}

stop() {
	ebegin "Stopping $name"
	start-stop-daemon --stop --exec /usr/bin/alertmanager --pidfile /run/$name.pid
	eend $?
}