#!/bin/sh

set -e

[ -f /etc/default/alloy ] && . /etc/default/alloy

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

#DEBHELPER#
