summaryrefslogtreecommitdiff
path: root/packaging/RedHat-9
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/RedHat-9')
-rwxr-xr-xpackaging/RedHat-9/smb.init11
1 files changed, 2 insertions, 9 deletions
diff --git a/packaging/RedHat-9/smb.init b/packaging/RedHat-9/smb.init
index 79f4f322d0..9b45ebabb3 100755
--- a/packaging/RedHat-9/smb.init
+++ b/packaging/RedHat-9/smb.init
@@ -30,15 +30,8 @@ case "$1" in
stop)
echo -n "Shutting down SMB services: "
- ## we have to get all the smbd process here instead of just the
- ## main parent (i.e. killproc) because it can take a long time
- ## for an individual process to process a TERM signal
- smbdpids=`ps guax | grep smbd | grep -v grep | awk '{print $2}'`
- for pid in $smbdpids; do
- kill -TERM $pid
- done
- ## nmbd is ok to kill using killproc()
- killproc nmbd -TERM
+ killproc smbd
+ killproc nmbd
rm -f /var/lock/subsys/smb
echo ""
;;