Package: minidlna Version: 1.1.4+dfsg-3 Severity: minor Dear Maintainer,
I have the "db_dir" set to /tmp because the minidlna instance on my computer is only for development purposes, the "actual" minidlna instance I use is on another machine. I've noticed that I no longer get logs in /var/log/minidlna.log. It turns out that this is caused by the "db_dir=/tmp" setting: If a db_dir is set, but the log_dir is unchanged (commented out), minidlna does not log to the default log location /var/log, but creates a log file in db_dir. So I have a /tmp/minidlna.log file now, even though one would probably assume that changing the db_dir has no influence on the log file directory. Upstream might not consider this behaviour to be a bug, since minidlna targets mainly special embedded systems (Netgear devices). Having a common directory for everything minidlna writes to disk is probably expected there. For a general purpose OS with special system-wide directories for logging and caching, the behaviour is unexpected and surprising. I see two solutions: document the behaviour in minidlna.conf, or patch minidlna.c to not use the db_dir for logging. It's in lines 744-747: If both log_dir and db_dir are unset, the default log dir /var/log is used for logging and /var/cache for caching (can be overwritten through ./configure flags). However, if only db_dir is set and log_dir unset, then db_dir is used for both, logging and caching. It should be easy to patch, i.e. remove the nested if and just copy DEFAULT_LOG_PATH into log_path. Cheers, Florian -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 4.0.0-1-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages minidlna depends on: ii adduser 3.113+nmu3 ii initscripts 2.88dsf-59.2 ii libavformat56 6:11.3-3+b3 ii libavutil54 6:11.3-3+b3 ii libc6 2.19-18 ii libexif12 0.6.21-2 ii libflac8 1.3.1-2 ii libid3tag0 0.15.1b-11 ii libjpeg62-turbo 1:1.4.0-7 ii libogg0 1.3.2-1 ii libsqlite3-0 3.8.10.2-1 ii libvorbis0a 1.3.4-2 ii lsb-base 4.1+Debian13+nmu1 minidlna recommends no packages. minidlna suggests no packages. -- Configuration Files: /etc/minidlna.conf changed: media_dir=/var/lib/minidlna db_dir=/tmp port=8200 serial=681019810597110 album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg album_art_names=AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg album_art_names=Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org