summaryrefslogtreecommitdiff
path: root/packaging/Solaris/preremove
diff options
context:
space:
mode:
authorShirish Kalele <kalele@samba.org>2001-04-11 02:28:38 +0000
committerShirish Kalele <kalele@samba.org>2001-04-11 02:28:38 +0000
commit362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e (patch)
treedc8d9981f58d0e92f49cbf71a2364b49c215a9bb /packaging/Solaris/preremove
parent91e97f90919fdc3bd2d26a5809cc3d037dbe4b22 (diff)
downloadsamba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.tar.gz
samba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.tar.bz2
samba-362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e.zip
Adding Solaris packaging files to HEAD.
(This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)
Diffstat (limited to 'packaging/Solaris/preremove')
-rw-r--r--packaging/Solaris/preremove12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/Solaris/preremove b/packaging/Solaris/preremove
new file mode 100644
index 0000000000..28e8d75c29
--- /dev/null
+++ b/packaging/Solaris/preremove
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# If this is a local deinstall, stop samba
+if [ -z "$PKG_INSTALL_ROOT" ]
+then
+ SMBD=`ps -e -o pid,comm | grep smbd | awk '{print $1}'`
+ NMBD=`ps -e -o pid,comm | grep nmbd | awk '{print $1}'`
+ [ ! -z "$SMBD" ] && kill $SMBD
+ [ ! -z "$NMBD" ] && kill $NMBD
+ sleep 2
+fi
+