# user and group information from a NT domain controller to linux.
#
# config: /etc/samba/smb.conf
+# processname: winbindd
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
# Source networking configuration.
. /etc/sysconfig/network
+winbindd_pidfile="/var/run/samba/winbindd.pid"
+
# Daemon specific configuration.
. /etc/sysconfig/winbind
stop() {
if [ -f /var/lock/subsys/winbind ]; then
msg_stopping winbindd
- killproc winbindd
+ killproc --pidfile $winbindd_pidfile winbindd
rm -f /var/lock/subsys/winbind >/dev/null 2>&1
else
msg_not_running winbindd
reload|force-reload)
if [ -f /var/lock/subsys/winbind ]; then
msg_reloading winbindd
- killproc winbindd -HUP
+ killproc --pidfile $winbindd_pidfile winbindd -HUP
RETVAL=$?
else
msg_not_running winbindd