#!/bin/sh
set -e

# Stop service before removal.
if command -v systemctl >/dev/null 2>&1; then
    systemctl stop mariadb_exporter.service || true
fi
