[systemd-devel] require a system service unit to start a user service as a dependency
Lennart Poettering
lennart at poettering.net
Mon Jan 4 15:29:05 UTC 2021
On Do, 24.12.20 05:38, John (graysky at archlinux.us) wrote:
> On Thu, Dec 24, 2020 at 3:29 AM Andrei Borzenkov <arvidjaar at gmail.com> wrote:
> >
> > On Thu, Dec 24, 2020 at 5:48 AM John <graysky at archlinux.us> wrote:
> > >
> > > I need to have the following start
> > > /usr/lib/systemd/user/pulseaudio.service so it can make use of
> > > pulseaudio. Using a After= or Wants= does not work. What is the
> > > correct way to have a system service like this run a user service
> > > unit?
> > >
> >
> > No, that's not possible. PA also supports system service, if this is a
> > kiosk system, maybe you can use it instead.
>
> Thank you for the reply. There are security risks running pulseaudio
> in system mode[1].
Well, but what you are doing is worse, you reverse the layers of the
stack...
If you want a system service that shall use PA, then PA should be a
system service too.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list