[Samba] launching samba and having logs

Mihamina Rakotomandimby mihamina.rakotomandimby at rktmb.org
Wed Sep 24 22:26:21 MDT 2014


Hi all,

I try to setup a Samba/Openchange service.
In the Oopenchange documentation, they advise to launch samba in an 
interactive mode and a verbose level: I like that.
http://www.openchange.org/cookbook/configuring.html
     # samba -d3 -i -M single

The problem is I want to launch it via an init script (centos6)

     # ....
     SMBDOPTIONS=" -d3 -M single "
     # ....
     start() {
     	echo -n $"Starting Samba services: "
     	daemon samba $SMBDOPTIONS
     	RETVAL=$?
     	echo
     	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$SAMBA_NAME || \
     	   RETVAL=1
     	return $RETVAL
     }	
     # ...

I dont get the same verbose output in any log file in "/var/log/samba/"

How to get the same verbosity in a log file when launching samba from an 
init script?

BTW, I dont understand what is the difference between
/var/log/samba4/log.samba and /var/log/samba4/log.smbd

Thank you very much.


More information about the samba mailing list