[Buildroot] [PATCH 09/16] package/minidlna: improve systemd support
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Sun Mar 8 21:52:13 UTC 2015
Dear Maxim Mikityanskiy,
On Mon, 19 Jan 2015 18:14:09 +0200, Maxim Mikityanskiy wrote:
> Support running minidlna in system-wide mode using systemd:
>
> 1. Set --with-db-path and --with-log-path configure options to make
> default minidlna directories comply with FHS.
>
> 2. Install suitable minidlna.conf for system-wide mode.
>
> 3. Install sysctl.d config file to increase inotify watches count.
>
> 4. Install tmpfiles.d config file to mkdir and chmod necessary
> directories for minidlna running in system-wide mode.
>
> 5. Install sysusers.d config file to create minidlna user when using
> systemd.
>
> 6. Install minidlna.service for systemd.
>
> Note: User=minidlna should be set in minidlna.service, not in
> minidlna.conf, because minidlna is unable to drop privileges correctly
> by itself: it does not get any privileges provided by groups of minidlna
> user. Systemd drops privileges correctly in that case.
>
> Signed-off-by: Maxim Mikityanskiy <maxtram95 at gmail.com>
I applied another patch adding a systemd service file for minidlna.
Could you rebase this patch on top of the latest Buildroot Git tree?
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list