0
0
Fork 0
mirror of https://github.com/alerta/alerta.git synced 2025-01-30 19:46:21 +00:00
alerta_alerta/contrib/upstart/alert-pagerduty.conf
2014-04-03 16:14:22 +01:00

18 lines
291 B
Text

#!upstart
start on runlevel [2345]
stop on runlevel [06]
chdir /var/lib/alerta
setuid alerta
respawn
script
ENABLE_ALERTA="yes"
[ -f /etc/default/alerta ] && . /etc/default/alerta
if [ "$ENABLE_ALERTA" = "yes" ]
then
exec /opt/alerta/bin/alert-pagerduty -f
fi
end script