<NME> before-remove.sh
<BEF> ADDFILE
<MSG> - more scripts

<DFF> @@ -0,0 +1,17 @@
+#!/bin/sh
+
+if [ $1 == "remove" ]; then
+  stop logstash > /dev/null 2>&1 || true
+
+  if getent passwd logstash >/dev/null ; then
+    userdel logstash
+  fi
+
+  if getent group logstash > /dev/null ; then
+    groupdel logstash
+  fi
+
+  if [ -d "/home/logstash" ] ; then
+    rm -rf /home/logstash
+  fi
+fi

- more scripts