diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2015-12-14 14:19:41 +0900 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-12-14 12:43:48 +0000 |
commit | 534855e48daeceb02418f59abedeee821c2ce01a (patch) | |
tree | af8947c81a64253d2b5a428629b083910480d394 /strata/audio-bluetooth | |
parent | 1ecc700a962cef1754b00e83722bb712f10312d5 (diff) | |
download | definitions-534855e48daeceb02418f59abedeee821c2ce01a.tar.gz |
Proper configuration of pulseaudio
Pulseaudio normally runs as a user specific service and
not a system service, some warnings were popping up because
we had passed /lib/systemd/system as --systemduserunitdir
(note that that is the *user* unit directory).
Instead we now pass /usr/lib/systemd/user as the
appropriate --systemduserunitdir which causes the .service
and .socket files to be installed in the appropriate
location, and systemd activates pulseaudio automatically
via regular socket activation.
Also, it is no longer necessary to use custom install commands
creating a symlink for the service, as the service need not
be "enabled", it is just activated upon request.
Change-Id: Ic1a246643c45062a4432be3f739de9a7146e5e5e
Diffstat (limited to 'strata/audio-bluetooth')
-rw-r--r-- | strata/audio-bluetooth/pulseaudio.morph | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/strata/audio-bluetooth/pulseaudio.morph b/strata/audio-bluetooth/pulseaudio.morph index e6c3672a..fabdc5da 100644 --- a/strata/audio-bluetooth/pulseaudio.morph +++ b/strata/audio-bluetooth/pulseaudio.morph @@ -6,12 +6,8 @@ pre-configure-commands: - NOCONFIGURE=1 ./bootstrap.sh configure-commands: - ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --with-database=simple - --with-systemduserunitdir=/lib/systemd/system + --with-systemduserunitdir=/usr/lib/systemd/user --with-system-user=pulse --with-system-group=pulse --with-access-group=pulse-access -install-commands: -- make DESTDIR="$DESTDIR" install -- mkdir -p "$DESTDIR/etc/systemd/system/multi-user.target.wants" -- ln -s /lib/systemd/system/pulseaudio.service "$DESTDIR/etc/systemd/system/multi-user.target.wants/pulseaudio.service" system-integration: pulseaudio-misc: 00-add-pulse-users: |