Starting SAMBA TNG-alpha.2.5

Simo Sorce simo.sorce at polimi.it
Mon May 29 08:21:17 GMT 2000


Hans Almqvist wrote:
> 
> Hi all!
> 
> When staring SAMBA I get the following in the smb.log:
> 
> added interface ip=192.168.1.1 bcast=192.168.1.255 nmask=255.255.255.0
> Failed to set socket option SO_KEEPALIVE (Error Socket operation on
> non-socket)
> Failed to set socket option TCP_NODELAY (Error Socket operation on
> non-socket)
> file_init: Information only: requested 10000 open files, 1014 are
> available.
> loaded services
> Becoming a daemon.
> bind succeeded on port 139
> waiting for a connection
> 
> I think I have seen people complaining about this before but have never
> seen any explanation of if and what is wrong.
> 
> Is this error message anything to worry about?
> 
> /Hasse

I will resond you for the file_init error.
This is not a problem unless you really need to open many files or serve
a big domain with many shares, however you have this error because by
default tour system allow you to open no more than 1024 files per
process.
To change this behaviour add this lines in your startup script:
ulimit -Hn 16384
ulimit -Sn 16384

Set them before your script launches samba.

example script for Linux RH6.0:

-------------------------------cut here-------------------------------
#!/bin/sh
#
# chkconfig: - 91 35
# description: Starts and stops the Samba smbd and nmbd daemons \
#              used to provide SMB network services.

# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

# Check that smb.conf exists.
[ -f /etc/smb.conf ] || exit 0

# Set max number files limit to 16384
ulimit -Hn 16384
ulimit -Sn 16384

# See how we were called.
case "$1" in
  start)
        echo -n "Starting SMB services: "
        daemon smbd -D 
        echo
        echo -n "Starting NMB services: "
        daemon nmbd -D 
        echo
        touch /var/lock/subsys/smb
        ;;
  stop)
        echo -n "Shutting down SMB services: "
        killproc smbd
        echo
        echo -n "Shutting down NMB services: "
        killproc nmbd
        rm -f /var/lock/subsys/smb
        echo ""
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status smbd
        status nmbd
        ;;
  *)
        echo "Usage: smb {start|stop|restart|status}"
        exit 1
esac
------------------------------------cut
here-----------------------------
-- 
Simo Sorce - Integrazione Sistemi Unix/Windows - Politecnico di Milano
E-mail: simo.sorce at polimi.it
Tel.int: 02 2399 2425 - Fax.int. 02 2399 2451
-----------------------------------------------------------------
Be happy, use Linux!


More information about the samba-ntdom mailing list