I upgraded from 1.3.3 as far as I remember. I'm logging the crashes now and
force the script to restart. That's a bit ugly, but the only solution to keep
this alive currently. 23 crashes in 6 days:
```
2019-01-03 06:53:38
2019-01-03 06:53:40
2019-01-03 06:53:41
2019-01-05 06:36:04
2019-01-05 06:36:05
2019-01-05 06:36:06
2019-01-05 06:36:08
2019-01-05 13:02:01
2019-01-05 13:02:03
2019-01-05 13:02:04
2019-01-05 13:02:05
2019-01-05 13:02:06
2019-01-07 05:09:32
2019-01-07 05:09:33
2019-01-07 05:09:35
2019-01-07 05:09:36
2019-01-07 08:36:41
2019-01-07 08:36:42
2019-01-07 08:36:43
2019-01-08 10:44:24
2019-01-08 10:44:25
2019-01-08 10:44:26
2019-01-08 10:44:27
```
This is my script:
```
set("log.file.path","/path/to/log/<script>.log")
set("log.level",3)
set("gstreamer.debug_level",3)
set("log.stdout",true)
set("server.telnet",true)
ogg = output.icecast(
%vorbis.cbr(
samplerate=44100,
channels=2,
bitrate=128
),
host="127.0.0.1",
port=8000,
public=true,
password="secret",
name="Radio",
description="Radio - 24/7",
genre="Various",
url="http://example.com",
mount="ogg"
)
mp3 = output.icecast(
%mp3.cbr(
bitrate=128,
samplerate=44100,
stereo=true,
id3v2=false
),
host="127.0.0.1",
port=8000,
public=true,
password="secret",
name="Radio",
description="Radio - 24/7",
genre="Various",
url="http://example.com",
mount="mp3"
)
musiclist = audio_to_stereo(
smart_crossfade(
normalize(
mksafe(
playlist(
reload=21600,
reload_mode="seconds",
mode="random",
"/path/to/playlist.m3u"
)
)
)
)
)
rotation = input.http(
"http://localhost:8000/rotation",
buffer=9.9
)
rotateshow = fallback(
track_sensitive=false,
[
rotation,
musiclist
]
)
podcast = input.http(
"http://localhost:8000/podcast",
buffer=9.9
)
podcastshow = fallback(
track_sensitive=false,
[
podcast,
rotateshow
]
)
relay = input.http(
"http://localhost:8000/stream",
buffer=9.9
)
relayshow = fallback(
track_sensitive=false,
[
relay,
podcastshow
]
)
funk = input.http(
"http://localhost:8000/funk",
buffer=9.9,
)
fullshow = fallback(
track_sensitive=false,
[
funk,
relayshow
]
)
def trigger(m) =
system("sh /path/to/some-script.sh > /dev/null 2>&1 &")
end
fullshow = on_metadata(trigger, fullshow)
ogg(fullshow)
mp3(fullshow)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/684#issuecomment-453041147
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users