#!/bin/sh

set -e

[ -f /etc/default/prometheus-node-exporter ] && . /etc/default/prometheus-node-exporter

if [ "$1" = "remove" ]; then
    if command -v systemctl >/dev/null 2>&1 ; then
        systemctl stop prometheus-node-exporter.service > /dev/null 2>&1 || :
    fi
fi

#DEBHELPER#
