CC-4114: use liquidsoap shutdown() command to restart liquidsoap

-moved liquidsoap into its own init.d script. Still need to do some testing.
This commit is contained in:
Martin Konecny 2012-08-18 21:52:06 -04:00
parent a6d10d8378
commit 1dd1ba4420
7 changed files with 107 additions and 95 deletions

View file

@ -76,6 +76,9 @@ server.register(namespace="streams",
server.register(namespace="vars",
"default_dj_fade",
fun (s) -> begin default_dj_fade := float_of_string(s) s end)
server.register(namespace="system",
"shutdown",
fun (s) -> begin shutdown() "Shutting Down" end)
server.register(namespace="dynamic_source",
description="Enable webstream output",
@ -105,7 +108,7 @@ server.register(namespace="dynamic_source",
destroy_dynamic_source)
default = amplify(id="silence_src", 0.00001, noise())
default = rewrite_metadata([("artist","Airtime"), ("title", "offline")],default)
default = rewrite_metadata([("artist","Airtime"), ("title", "offline")], default)
ignore(output.dummy(default, fallible=true))
master_dj_enabled = ref false