El servicio systemd del usuario no se reinicia después de la suspensión

El servicio systemd del usuario no se reinicia después de la suspensión

He creado un servicio systemd de usuario para reiniciar Spotify después de suspenderlo, como se sugiere en la página de Spotifyd Git Hub. El problema que tengo es que nunca se reinicia después de la suspensión.

Este es el archivo de servicio restartSpotifyd. he eliminado el

Reiniciar=siempre

del archivo restartSpotifyd.service porque estaba alcanzando el límite de inicio ("start-limit-hit"). Esta es la versión actualizada del archivo de servicio:

.config/systemd/user/restartSpotifyd.servicio

[Unit]
Description=Restart spotifyd after resume
After=suspend.target

[Service]
Type=simple
ExecStart=/bin/systemctl --user --no-block restart spotifyd.service

[Install]
WantedBy=suspend.target

Cuando suspendo y reinicio la computadora me sale esto:

systemctl --user status restartSpotifyd
● restartSpotifyd.service - Restart spotifyd after resume
     Loaded: loaded (/home/netlak/.config/systemd/user/restartSpotifyd.service; enabled; vendor preset: enabled)
     Active: inactive (dead)

May 26 15:04:13 jamming systemd[1361]: Stopped Restart spotifyd after resume.
May 26 15:04:13 jamming systemd[1361]: Started Restart spotifyd after resume.
May 26 15:04:13 jamming systemd[1361]: restartSpotifyd.service: Succeeded.
May 26 15:04:13 jamming systemd[1361]: restartSpotifyd.service: Scheduled restart job, restart counter is at 5.
May 26 15:04:13 jamming systemd[1361]: Stopped Restart spotifyd after resume.
May 26 15:04:13 jamming systemd[1361]: restartSpotifyd.service: Start request repeated too quickly.
May 26 15:04:13 jamming systemd[1361]: restartSpotifyd.service: Failed with result 'start-limit-hit'.
May 26 15:04:13 jamming systemd[1361]: Failed to start Restart spotifyd after resume.
May 26 15:06:21 jamming systemd[1361]: Started Restart spotifyd after resume.
May 26 15:06:21 jamming systemd[1361]: restartSpotifyd.service: Succeeded.

A las 15:10 suspendí el ordenador pero al despertar no se ha reiniciado el servicio. La última vez que se reinició fue cuando reinicié manualmente el servicio a las 15:06.

Esto está sucediendo en Debian y Archlinux. ¿Alguien puede indicarme lo que me falta aquí?

información relacionada