[Samba] A question about Samba logging
dandbnews2 at talktalk.net
Thu Feb 4 21:25:03 UTC 2016
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
mount -t tmpfs tmpfs /var/run/samba
mount -t tmpfs tmpfs /var/cache/samba
but I’m not certain that wins.dat is now in tmpfs.
Are my edits correct for what I’m trying to do?
Sent: Tuesday, February 02, 2016 11:00 PM
To: samba at lists.samba.org
Subject: A question about Samba logging
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
Is there something I should do to ensure that Samba logs are directed to tmpfs?
More information about the samba