Re: auto reconnect for web radio
Posted: 13 Mar 2016, 19:53
Edit: Sorry to slow!
Hi flega,
i think there is some confusion because of this:
If you have named the script "mpd-watchdog.sh" you also have to change the service file.
Please try this service file:
Frank
Hi flega,
i think there is some confusion because of this:
PeteB wrote:I added the filename extension
Code: Select all
ExecStart=/var/www/command/mpd-watchdog.sh
otherwise it does not start.
If you have named the script "mpd-watchdog.sh" you also have to change the service file.
Please try this service file:
- Code: Select all
[Unit]
Description=RuneAudio MPD watchdog
After=mpd.service
[Service]
ExecStart=/usr/bin/sh /var/www/command/mpd-watchdog.sh
TimeoutSec=0
Restart=always
RestartSec=1
StartLimitInterval=30
StartLimitBurst=20
[Install]
WantedBy=multi-user.target
Frank