4 # Run via cron every 5 minutes
11 echo "Cannot find config file ${cfg}" > /dev/stderr
18 # Unfortunately minidlnad is not able to rescan the archive during
19 # regular operation. Depending on the size of the archive rescanning
20 # can last for one hour or more, and only few files will be announced
21 # during this operation.
24 if [ -f "${rescan_file}" ]
26 trap "rm -f ${rescan_file}" INT EXIT QUIT
28 if [ "${rescan_file}" -nt "${cache}" ]
30 /usr/sbin/minidlnad -R
31 /usr/sbin/service minidlna restart