#!/bin/sh

if ! systemctl -q is-active incus.service; then
    exit 0
fi

exec /usr/libexec/incus/incusd shutdown
