musikcube icon indicating copy to clipboard operation
musikcube copied to clipboard

Question regarding musikcubed

Open extrowerk opened this issue 1 year ago • 2 comments

I am using musikcube/d on my NAS and connecting my clients (laptops/phones) via VPN. Now my question is: do musikcubed watching the media-directory for any changes and update its database / informs the clients, or if not, is there any way to trigger rescan from the connected clients, or is there any provisory plumbing for this kind of automatisation?

sorry if this is a silly question, but i assumed it watches the folders, but i feel like it doesnt happen, maybe my NAS/client OS or sw version combination doesnt supports this. I use FreeBSD based TrueNAS Core on the NAS, and use OpenBSD and Android clients.

Thanks for the clarification and keep up the good work.

extrowerk avatar Mar 11 '23 08:03 extrowerk

from my use using both local and remote libraries, MK seems to reload the library on restart only

lxjv avatar Sep 20 '23 17:09 lxjv

if you check the source for musikcubed it is using the SIGUSR1 interrupt to reload the library:

std::signal(SIGUSR1, rescanHandler);

i suppose you could mix inotofywait and the kill command to make it update automatically.

tomasmez avatar Dec 22 '23 17:12 tomasmez