From 362e4bb21a3c630eb0625a1b3ab9f70dafc85d7e Mon Sep 17 00:00:00 2001
From: Shirish Kalele <kalele@samba.org>
Date: Wed, 11 Apr 2001 02:28:38 +0000
Subject: Adding Solaris packaging files to HEAD. (This used to be commit
 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)

---
 packaging/Solaris/preremove | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 packaging/Solaris/preremove

(limited to 'packaging/Solaris/preremove')

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
+
-- 
cgit 


From 2712b8854b4eb01ba5b79141d001d53c043d1413 Mon Sep 17 00:00:00 2001
From: Gerald Carter <jerry@samba.org>
Date: Sun, 31 Oct 2004 02:32:35 +0000
Subject: r3398: fixing up solaris packaging for 3.0.x (This used to be commit
 7b66980f4fbeac66ea8c3e9c32f1543df923a4a5)

---
 packaging/Solaris/preremove | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packaging/Solaris/preremove')

diff --git a/packaging/Solaris/preremove b/packaging/Solaris/preremove
index 28e8d75c29..7313b0074f 100644
--- a/packaging/Solaris/preremove
+++ b/packaging/Solaris/preremove
@@ -5,8 +5,8 @@ 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
+	[ ! -z "$SMBD" ] && kill -TERM $SMBD
+	[ ! -z "$NMBD" ] && kill -TERM $NMBD
 	sleep 2
 fi
 
-- 
cgit