#!/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 $?
}