You are not logged in.
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.targetAnd 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
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
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