~dricottone/huttese-apk

ref: 06c053e6cd71ee0fbbf30ff91f1a03bb2b0135e8 huttese-apk/prometheus/alertmanager/alertmanager.initd -rw-r--r-- 438 bytes
06c053e6 — Drew DeVault prometheus/alertmanager: new APKBUILD 5 years ago
                                                                                
06c053e6 Drew DeVault
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 $?
}