r1244: More Heimdal compile fixes.
[Samba/gebeck_regimport.git] / packaging / Solaris / preremove
blob28e8d75c298c1cae9437065dc20a0e773379cb0e
1 #!/bin/sh
3 # If this is a local deinstall, stop samba
4 if [ -z "$PKG_INSTALL_ROOT" ]
5 then
6 SMBD=`ps -e -o pid,comm | grep smbd | awk '{print $1}'`
7 NMBD=`ps -e -o pid,comm | grep nmbd | awk '{print $1}'`
8 [ ! -z "$SMBD" ] && kill $SMBD
9 [ ! -z "$NMBD" ] && kill $NMBD
10 sleep 2