aboutsummaryrefslogtreecommitdiff
path: root/security/crowdsec/files/pkg-deinstall.in
diff options
context:
space:
mode:
Diffstat (limited to 'security/crowdsec/files/pkg-deinstall.in')
-rw-r--r--security/crowdsec/files/pkg-deinstall.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/security/crowdsec/files/pkg-deinstall.in b/security/crowdsec/files/pkg-deinstall.in
index 4cee7a613b84..6d60f11d51e6 100644
--- a/security/crowdsec/files/pkg-deinstall.in
+++ b/security/crowdsec/files/pkg-deinstall.in
@@ -1,9 +1,11 @@
#!/bin/sh
+#shellcheck disable=SC2249
case $2 in
"DEINSTALL")
- service crowdsec status 2>/dev/null && touch /var/run/crowdsec.running
- service crowdsec stop 2>/dev/null || :
+ # 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