Skip to content

Commit

Permalink
Move start delay to raspotify service
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLG1979 committed Dec 3, 2022
1 parent d5ef20d commit 3b4e49b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions raspotify/lib/systemd/system/raspotify.service
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ Environment=TMPDIR=%t/%N

EnvironmentFile=-%E/%N/conf

# Delay start up to debounce restarts
# and to help prevent librespot from
# starting to soon during boot up.
ExecStartPre=/usr/bin/sleep 10
ExecStart=/usr/bin/librespot

[Install]
Expand Down
2 changes: 0 additions & 2 deletions raspotify/usr/bin/raspotify-crash-report-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,5 @@ done <$config
systemctl reset-failed raspotify

if [ "$fail_count" -lt 6 ]; then
# delay restarts by 10 sec to debounce
sleep 10
systemctl restart raspotify
fi

0 comments on commit 3b4e49b

Please sign in to comment.