The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/packaging/deb/control/prerm

17 lines
498 B

#!/usr/bin/env sh
if [ "$1" = 'remove' ]
then
echo 'Stopping and disabling grafana-server service...'
if command -v systemctl >/dev/null; then
systemctl stop grafana-server || true
systemctl disable grafana-server || true
elif [ -x '/etc/init.d/grafana-server' ]; then
if command -v invoke-rc.d >/dev/null; then
invoke-rc.d grafana-server stop || true
update-rc.d -f grafana-server remove || true
else
/etc/init.d/grafana-server stop || true
fi
fi
fi