#!/bin/sh

#shellcheck disable=SC2249
case $2 in
       "DEINSTALL")
               # on pfsense, the service is not "enabled" so status and stop would fail
               service crowdsec onestatus 2>/dev/null && touch /var/run/crowdsec.running
               service crowdsec onestop 2>/dev/null || :
               ;;
esac

