1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/packaging/Solaris/preremove
Gerald Carter 2712b8854b r3398: fixing up solaris packaging for 3.0.x
(This used to be commit 7b66980f4f)
2007-10-10 10:53:05 -05:00

13 lines
292 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 -TERM $SMBD
[ ! -z "$NMBD" ] && kill -TERM $NMBD
sleep 2
fi