02-14-2025, 01:55 AM
(02-14-2025, 01:06 AM)TheOldPresbyope Wrote:(02-14-2025, 12:40 AM)Tim Curtis Wrote: If off/on works then no need to reboot, correct?
That's how it's working for me on a moOde 9.2.4 player.
OTOH, clicking on the Rebuild button again after the database has been built feels like a no-op. Running top when I do that, I don't see an instance of minidlnad start as I do when I cycle DLNA off and on again.
Regards,
Kent
Here's what the code does. It's ancient from way back.
Code:
case 'dlnarebuild':
sysCmd('systemctl stop minidlna');
sysCmd('rm -rf /var/cache/minidlna/* > /dev/null');
sleep(2);
startMiniDlna();
break;
Code:
// DLNA server
function startMiniDlna() {
sysCmd('systemctl start minidlna');
}
Code:
pi@moode9:~ $ cat /lib/systemd/system/minidlna.service
[Unit]
Description=MiniDLNA lightweight DLNA/UPnP-AV server
Documentation=man:minidlnad(1) man:minidlna.conf(5)
After=local-fs.target remote-fs.target autofs.service
[Service]
User=minidlna
Group=minidlna
Environment=CONFIGFILE=/etc/minidlna.conf
Environment=DAEMON_OPTS=-r
EnvironmentFile=-/etc/default/minidlna
RuntimeDirectory=minidlna
LogsDirectory=minidlna
PIDFile=/run/minidlna/minidlna.pid
ExecStart=/usr/sbin/minidlnad -f $CONFIGFILE -P /run/minidlna/minidlna.pid -S $DAEMON_OPTS
[Install]
WantedBy=multi-user.target