diff options
author | Lukáš Hrázký <lukkash@email.cz> | 2016-01-01 17:29:17 +0100 |
---|---|---|
committer | Lukáš Hrázký <lukkash@email.cz> | 2016-01-01 17:29:17 +0100 |
commit | c236ebf46354938ed9f2e9d7f076b491eda4e2de (patch) | |
tree | c1af4db1e1d7a4414ca6ac150f70dbff31b58808 /media-sound | |
parent | dev-python/python-yadis: Disable tests altogether. Fixes bug 430092. (diff) | |
download | gentoo-c236ebf46354938ed9f2e9d7f076b491eda4e2de.tar.gz gentoo-c236ebf46354938ed9f2e9d7f076b491eda4e2de.tar.bz2 gentoo-c236ebf46354938ed9f2e9d7f076b491eda4e2de.zip |
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.
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/mpd/mpd-0.19.11.ebuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media-sound/mpd/mpd-0.19.11.ebuild b/media-sound/mpd/mpd-0.19.11.ebuild index da43a94770b2..ac380c618904 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" |