1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00
Shirish Kalele 362e4bb21a Adding Solaris packaging files to HEAD.
(This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)
2001-04-11 02:28:38 +00:00

13 lines
280 B
Bash

#!/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