From 0c04c901420dddd12225e1cccd7328923894e553 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Wed, 12 Dec 2018 15:39:02 +0100 Subject: [PATCH] Add dependencies to the spotifyd systemd service 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. --- contrib/spotifyd.service | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/spotifyd.service b/contrib/spotifyd.service index 6187e3eb..5857b899 100644 --- a/contrib/spotifyd.service +++ b/contrib/spotifyd.service @@ -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