02-15-2025, 08:27 PM
(02-15-2025, 06:42 PM)TheOldPresbyope Wrote:(02-14-2025, 01:55 AM)Tim Curtis Wrote:(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
Nothing looks odd to me there. The thing is, I don't see any evidence that clicking the REBUILD button gets me to case 'dlnarebuild'.
I'm not afraid to admit I don't really grok the front-end stuff. No problem with php and shell script but I get befuddled in the event handling associated with the REBUILD button. I can spell the names of cool technologies like jQuery and Ajax but don't ask me to explain how they work.
Regards,
Kent
Fixed. Good catch.