packages: samba/smb.init - use pidfiles when killing procs
glen
glen at pld-linux.org
Tue Mar 22 12:03:41 CET 2011
Author: glen Date: Tue Mar 22 11:03:41 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- use pidfiles when killing procs
---- Files affected:
packages/samba:
smb.init (1.24 -> 1.25)
---- Diffs:
================================================================
Index: packages/samba/smb.init
diff -u packages/samba/smb.init:1.24 packages/samba/smb.init:1.25
--- packages/samba/smb.init:1.24 Tue Mar 22 11:54:51 2011
+++ packages/samba/smb.init Tue Mar 22 12:03:36 2011
@@ -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 @@
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 @@
fi
msg_reloading "Samba SMB/CIFS Server"
- killproc smbd -HUP
+ killproc --pidfile $smbd_pidfile smbd -HUP
RETVAL=$?
}
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/samba/smb.init?r1=1.24&r2=1.25&f=u
More information about the pld-cvs-commit
mailing list