]> git.pld-linux.org Git - packages/samba.git/commitdiff
- use pidfiles when killing procs
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 22 Mar 2011 11:03:36 +0000 (11:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    smb.init -> 1.25

smb.init

index 7031788532921805472bd8b49fcfb4f192ac2766..f15289909cd1e57954e139d37a53d73126884cb3 100644 (file)
--- a/smb.init
+++ b/smb.init
@@ -17,6 +17,8 @@
 
 # Set default config
 CFGFILE="/etc/samba/smb.conf"
+smbd_pidfile="/var/run/smbd.pid"
+nmbd_pidfile="/var/run/nmbd.pid"
 
 # Demon specified configuration.
 . /etc/sysconfig/samba
@@ -60,9 +62,10 @@ stop() {
        fi
 
        msg_stopping "Samba SMB/CIFS Server"
-       killproc smbd
+       killproc --pidfile $smbd_pidfile smbd
+
        msg_stopping "Samba NetBIOS Name Server"
-       killproc nmbd
+       killproc --pidfile $nmbd_pidfile nmbd
        rm -f /var/lock/subsys/smb >/dev/null 2>&1
 }
 
@@ -74,7 +77,7 @@ reload() {
        fi
 
        msg_reloading "Samba SMB/CIFS Server"
-       killproc smbd -HUP
+       killproc --pidfile $smbd_pidfile smbd -HUP
        RETVAL=$?
 }
 
This page took 0.045495 seconds and 4 git commands to generate.