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.
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?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.