# 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
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
}
fi
msg_reloading "Samba SMB/CIFS Server"
- killproc smbd -HUP
+ killproc --pidfile $smbd_pidfile smbd -HUP
RETVAL=$?
}