commit:     c236ebf46354938ed9f2e9d7f076b491eda4e2de
Author:     Lukáš Hrázký <lukkash <AT> email <DOT> cz>
AuthorDate: Fri Jan  1 16:29:17 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Fri Jan  1 16:29:17 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c236ebf4

media-sound/mpd: add a systemd user service

This allows a user to run mpd through systemd locally, instead of a
system-wide global instance under the mpd user.

 media-sound/mpd/mpd-0.19.11.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/media-sound/mpd/mpd-0.19.11.ebuild 
b/media-sound/mpd/mpd-0.19.11.ebuild
index da43a94..ac380c6 100644
--- a/media-sound/mpd/mpd-0.19.11.ebuild
+++ b/media-sound/mpd/mpd-0.19.11.ebuild
@@ -223,6 +223,8 @@ src_install() {
 
        newinitd "${FILESDIR}"/${PN}2.init ${PN}
 
+       systemd_newuserunit systemd/${PN}.service ${PN}.service
+
        if use unicode; then
                sed -i -e 's:^#filesystem_charset.*$:filesystem_charset 
"UTF-8":' \
                        "${ED}"/etc/mpd.conf || die "sed failed"

Reply via email to