| 
            Last change
 on this file was             206, checked in by Herwig Bauernfeind, 16 years ago           | 
        
        
          | 
             
Import Samba 3.3 branch at 3.0.0 level (psmedley's port) 
 
           | 
        
        
          | 
            File size:
            292 bytes
           | 
        
      
      
| Line |   | 
|---|
| 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 | 
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.