@hondagx35: SUCCESS
At a quick pass, it seems to work as intended. Now if a stream is interrupted for a few seconds, it stops playing, and resumes a little later. The pause seems longer than the interruption in the stream, perhaps because some kind of delay or buffer is filling. (I did not have a chance to test a longer pause in the stream than a few seconds)
systemctl shows it running:
- Code: Select all
....
getty@tty1.service loaded active running Getty on tty1
kmod-static-nodes.service loaded active exited Create list of required
mpd-watchdog.service loaded active running RuneAudio MPD watchdog
mpd.service loaded active running Music Player Daemon
....
I copied and saved the script to /var/www/command so the directory path would match.
- Code: Select all
/var/www/command/mpd-watchdog.sh
I added the filename extension
- Code: Select all
ExecStart=/var/www/command/mpd-watchdog.sh
otherwise it does not start. If you want it saved someplace else, please advise.
(I don't really know my way around Arch well, and have no idea where scripts should go)
For test purposes, I used
- Code: Select all
# systemctl start mpd-watchdog.service
and
- Code: Select all
# systemctl stop mpd-watchdog.service
to get a fair test w/o a hard reboot.
TGIF lunchtime here, so it should be about "that time" in Germany, therefore - Prost!
Pete