mirror of
https://github.com/alerta/alerta.git
synced 2025-01-30 19:46:21 +00:00
18 lines
292 B
Text
18 lines
292 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-solarwinds -f
|
|
fi
|
|
end script
|
|
|