[Samba] A question about Samba logging

DavidA dandbnews2 at talktalk.net
Thu Feb 4 21:25:03 UTC 2016


Hi

May I ask for help with this again please?

I’m trying to ensure that Samba writes its wins.dat file to tmpfs.  

I have added these mount commands to /etc/init.d/samba:

case $1 in
        start)
                mount -t tmpfs tmpfs /var/run/samba
                mount -t tmpfs tmpfs /var/cache/samba
                /etc/init.d/nmbd start
                /etc/init.d/smbd start
                /etc/init.d/samba-ad-dc start
                ;;
        stop)

but I’m not certain that wins.dat is now in tmpfs.

Are my edits correct for what I’m trying to do?

Best regards

David

From: DavidA 
Sent: Tuesday, February 02, 2016 11:00 PM
To: samba at lists.samba.org 
Subject: A question about Samba logging

Hi

I run the system partition for my Raspberry Pi Samba server off a USB hard disk. I want the disk to sleep when not accessed for user data so I want log files to live in tmpfs.  Currently, if I put the drive in standby (using hdparm) it immediately wakes again.  I search for files changed very recently and see:

$ sudo /usr/local/sbin/ff_changed 1
Search whole filesystem for changed files in the last 1 minutes
/dev/xconsole
/var/lib/samba
/var/lib/samba/wins.dat
/var/lib/sudo/ts/david
/var/log/auth.log

Is there something I should do to ensure that Samba logs are directed to tmpfs?

Best regards

David


More information about the samba mailing list