summaryrefslogtreecommitdiffstats
path: root/extras/Solaris/preremove
diff options
context:
space:
mode:
Diffstat (limited to 'extras/Solaris/preremove')
-rw-r--r--extras/Solaris/preremove10
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/Solaris/preremove b/extras/Solaris/preremove
new file mode 100644
index 000000000..503b42817
--- /dev/null
+++ b/extras/Solaris/preremove
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# If this is a local deinstall, stop glusterfs
+if [ -z "$PKG_INSTALL_ROOT" ]
+then
+ DAEMON=`ps -e -o pid,comm | grep glusterfsd | awk '{print $1}'`
+ [ ! -z "$DAEMON" ] && kill -TERM $SMBD
+ sleep 2
+fi
+