~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to packaging/Solaris/preremove

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
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 -TERM $SMBD
 
9
        [ ! -z "$NMBD" ] && kill -TERM $NMBD
 
10
        sleep 2
 
11
fi
 
12