Those are the contents of /usr/lib/systemd/user/pulseaudio.service
contains the following.
[Service]
EnvironmentFile=-/etc/sysconfig/pulseaudio
# Wait until system PulseAudio daemon has completely shut down before
# starting user session daemon.
ExecStartPre=/bin/sh -c "while [ -f /run/pulse/pid ]; do sleep 1; done"
ExecStart=/usr/bin/pulseaudio --daemonize=no $CONFIG
Restart=always
RestartSec=1
Type=notify
Restart=always
means it will will restart it not just on error, but but if the process stops in any way. At least I think that is what it should do if the service was enabled. But for me, it was disabled for some reason.
systemctl --user status pulseaudio.service
● pulseaudio.service - PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
So now I did systemctl --user enable pulseaudio.service
we will see if my device explodes, or maybe it will fix it?
Otherwise it this doesn’t work, I would look into Type=notify
and systemd messaging and try to catch if when pulseaudio stops working, if it creates any message.