Page 2 of 2

Re: auto reconnect for web radio

PostPosted: 13 Mar 2016, 19:53
by hondagx35
Edit: Sorry to slow!

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

Re: auto reconnect for web radio

PostPosted: 13 Mar 2016, 19:56
by hondagx35
@PeteB

/var/www = /srv/http

Code: Select all
[root@runeaudio ~]# ls -la /var/
total 48
.....
lrwxrwxrwx  1 root root   10 Feb 14  2015 www -> /srv/http/


It is a symlink!

Frank

Re: auto reconnect for web radio

PostPosted: 13 Mar 2016, 20:09
by flega
Thank you all :!:
If this will work that will be great! :mrgreen: :mrgreen:
Finally no more wait for silence, than fire up a web interface and restart the radio station. This is ok for me, but for my wife or childern is pretty complicated. And from now on radio will always be played in my kitchen. :P

Re: auto reconnect for web radio

PostPosted: 13 Mar 2016, 20:35
by PeteB
hondagx35 wrote:It is a symlink!
Got it... :oops:

Re: auto reconnect for web radio

PostPosted: 14 Mar 2016, 19:29
by flega
Tested and work! Again, thanks for help!