But, for some reason, it doesn't seem to add new files which I add to its folders.
Now if found this post
$ sudo minidlna -R $ sudo service minidlna restart
#!/bin/bash ssh -t server.on.lan 'sudo minidlna -R && sudo service minidlna restart'
AzP already provided most of the information, but some of it is incorrect.
First of all, there is no such option
inotify_interval. The only option that exists is
notify_intervaland has nothing to do with
So to clarify,
notify_intervalcontrols how frequently the (mini)dlna server announces itself in the network. The default value of 895 means it will announce itself about once every 15 minutes, meaning clients will need at most 15 minutes to find the server. I personally use 1-5 minutes depending on client volatility in the network.
In terms of getting minidlna to find files that have been added, there are two options: Additionally, in order to have
inotifyworking, the file-system must support
inotifyevents, which is not the case in most remote file-systems. If you have minidlna running over NFS it will not see any inotify events because these are generated on the server side and not on the client.
Finally, even if
inotifyis working and is supported by the file-system, the user under which minidlna is running must be able to read the file, otherwise it will not be able to retrieve necessary metadata. In this case, the logfile (usually
/var/log/minidlna.log) should contain useful information.