Skip to content

Commit

Permalink
Add dependencies to the spotifyd systemd service
Browse files Browse the repository at this point in the history
Spotifyd crashes if it starts before either the sound card is configured or the network is available. Whilst this is not too bad, it causes a restart of the service when started at boot. It is nicer to just depend on the targets that systemd provides to signal availability of both.
  • Loading branch information
bertptrs authored Dec 12, 2018
1 parent 010b0ca commit 0c04c90
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/spotifyd.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[Unit]
Description=A spotify playing daemon
Documentation=https://github.com/Spotifyd/spotifyd
Wants=sound.target
After=sound.target
Wants=network-online.target
After=network-online.target

[Service]
ExecStart=/usr/bin/spotifyd --no-daemon
Expand Down

0 comments on commit 0c04c90

Please sign in to comment.