Andrea Odetti - 2013-12-11

Hi,

I would like to know if it is possible to add a systemd task so that I can reload the database (in other words the -R switch).

What I do is to manually change /usr/lib/systemd/system/minidlna.service to

ExecStart=/usr/bin/minidlnad -R -P /run/minidlna/minidlna.pid

so that each time it reloads it.

something like

ExecReload=/bin/kill -HUP $MAINPID

(which of course does not do it)

I am not sure, something like

ExecReload=/bin/kill $MAINPID && sleep 10 && /usr/bin/minidlnad -P /run/minidlna/minidlna.pid

what do you think?