#!/bin/sh
set -e

# Enable and restart systemd unit if present.
if command -v systemctl >/dev/null 2>&1; then
    systemctl daemon-reload || true
    systemctl enable mariadb_exporter.service || true
    systemctl restart mariadb_exporter.service || true
fi
