Rescan on linux signal

It would be great to able rescan all shares using signal. I hope it will be not so hard to implement, but it allows to reload files on server using command line: kill -s … pid

You have more fine grained control over rescanning by using the API.


curl -X POST -H X-API-Key:abcd1234 http://localhost:8384/rest/db/scan\?folder=abcd-1234

into a script and you’re good to go.

If you want to rescan all folders, you can omit the folder parameter in the above example.

Although API allows finer, folder-level control, signals, even being less specific, might cover some uses in a more classical, *nix-like way, such as scripting the local daemon. Also, modern systems like Docker, can take advantage of it, since signals sent to containers are proxied to their root processes.

Just my 2c.