Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#203 db mode issue

v1.0 (example)
open
nobody
None
5
2013-06-21
2013-06-21
rcainc
No

Hi,
For some reason my minidlna service run as "minidlna" user.
The default db /var/lib/minidlna/files.db is root:root 644.
and here is the wrong stuff :

1)The service scan dir to see if there is new files
2)Detect a new file "foobar" and try to add it to database
3)append to log file the unwritable database error
4)Jump to 1. With the same "foobar" file

So after hours my log file was 76Gb.

To fix this is think service should check the db for rw access and log once on errors.
Or log for every files present but log only once per file.

Of course i fix my installation by changing files.db to minidlna:minidlna 644 but i think fix the way the soft log is a better thing.

Discussion