You are not logged in.

#1 2013-09-16 09:48:23

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

[SOLVED]PulseAudio systemd daemon doesn't work

Hello.
I try to set PulseAudio as systemd service, but I'm still getting errors.

Here is how my .service file looks like.

$cat /usr/lib/systemd/system/pulse@.service

[Unit]
Description=PulseAudio Sound System
Before=sound.target

[Service]
BusName=org.pulseaudio.Server
ExecStart=/usr/bin/pulseaudio --start
Restart=always
User=%1

[Install]
WantedBy=multi-user.target

And here is what I get (dan is my username):

$ systemctl start pulse@dan.service
$ systemctl status pulse@dan.service 

pulse@dan.service - PulseAudio Sound System
   Loaded: loaded (/usr/lib/systemd/system/pulse@.service; disabled)
   Active: failed (Result: start-limit) since Mon 2013-09-16 11:42:46 CEST; 2s ago
  Process: 1407 ExecStart=/usr/bin/pulseaudio --start (code=exited, status=217/USER)

Sep 16 11:42:45 530uarch systemd[1]: Failed to start PulseAudio Sound System.
Sep 16 11:42:45 530uarch systemd[1]: Unit pulse@dan.service entered failed state.
Sep 16 11:42:46 530uarch systemd[1]: pulse@dan.service holdoff time over, scheduling restart.
Sep 16 11:42:46 530uarch systemd[1]: Stopping PulseAudio Sound System...
Sep 16 11:42:46 530uarch systemd[1]: Starting PulseAudio Sound System...
Sep 16 11:42:46 530uarch systemd[1]: pulse@dan.service start request repeated too quickly, refusing to start.
Sep 16 11:42:46 530uarch systemd[1]: Failed to start PulseAudio Sound System.
Sep 16 11:42:46 530uarch systemd[1]: Unit pulse@dan.service entered failed state.

Thank you

Last edited by Kotrfa (2013-09-16 17:02:35)

Offline

#2 2013-09-16 12:26:11

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED]PulseAudio systemd daemon doesn't work

pulseaudio is not meant to be started as a system service, it is part of the session and there is no valid session within the service.

Offline

#3 2013-09-16 17:02:20

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: [SOLVED]PulseAudio systemd daemon doesn't work

Ahhh. Thank you for that. I will add it to my awesome autostart script.

Solved

Last edited by Kotrfa (2013-09-16 17:03:20)

Offline

Board footer

Powered by FluxBB