Solved: I found out that, when started from network_control.sh, network_servers.sh runs on a very limited environment, and LD_LIBRARY_PATH is not set. I put in a line setting this variable :
if [ -z $LD_LIBRARY_PATH ]; then; export LD_LIBRARY_PATH=/opt/bin; fi
if anyone has an idea, why this is not set when network_servers.sh script is running, it would still be appreciated.
I updated my WD Mybook (Blue Ring) with the new Samba Version (3.5.12) and changed all the config files according to the "update-samba-blue-ring" tutorial.
After some debugging, I found that Samba works when started manually or from the network_servers.sh script in /etc/init.d and seems to work perfectly (first time since I upgraded my Mac to OS X Lion).
However, there is no nmbd daemon running after rebooting the Mybook.
I found, that when invoked from network_control.sh or S30network (all in /etc/init.d), i get an error that libiconv.so.2 is not found. I guess since smbd is invoked from inetd (which is in the ps-table), it is not working either.
How can this be? libiconv.so.2 is in /opt/lib (actually pointing to libiconv.so.2.5) and apparently found. Permissions are 644
Below are the outputs of network_servers.sh restart (samba and nmbd work) and network_control.sh (both do not work)
[root@XXXX init.d]# ./network_servers.sh restart Stopping lighttpd Stopping RAID status reporting... Stopping Samba Stoping mDNS Stoping inetd Stoping ntpd Looking for host 126.96.36.199 and service ntp host found : bwntp1.bluewin.ch 19 Dec 00:49:47 ntpdate: adjust time server 188.8.131.52 offset 0.026193 sec Starting inetd Starting mDNS Starting Samba Starting RAID status reporting... Starting lighttpd /dev/sdb: No such device or address
[root@XXXX init.d]# ./network_control.sh restart Stopping lighttpd Stopping RAID status reporting... Stopping Samba Stoping mDNS Stoping inetd Stoping ntpd info, udhcpc (v1.2.2) started debug, Sending discover... debug, Sending select for 192.168.1.33... info, Lease of 192.168.1.33 obtained, lease time 86400 Looking for host 184.108.40.206 and service ntp host found : bwntp1.bluewin.ch 19 Dec 00:54:41 ntpdate: adjust time server 220.127.116.11 offset 0.015884 sec Starting inetd Starting mDNS Starting Samba /opt/sbin/nmbd: can't load library 'libiconv.so.2' Starting RAID status reporting... Starting lighttpd /dev/sdb: No such device or address