Skip to content
Snippets Groups Projects
Commit c60bef92 authored by David Trattnig's avatar David Trattnig
Browse files

Chore: Display system settings on socket and root

parent 688db317
Branches
Tags
1 merge request!3Liquidsoap 2 migration
......@@ -35,9 +35,6 @@ end
# ALLOW LIQUIDSOAP RUN AS ROOT
lqs_allow_root = list.assoc(default="false", "liquidsoap_as_root", ini)
if lqs_allow_root == "true" then
settings.init.allow_root.set(true)
end
# BASICS
settings.console.colorize.set("always")
......@@ -61,7 +58,8 @@ settings.log.file.path.set("#{log_dir}/engine-core.log")
# SOCKET SETTINGS
settings.server.socket.set(true)
socket_dir = list.assoc(default="../socket", "socket_dir", ini)
settings.server.socket.path.set("#{socket_dir}/<script>.sock")
socket_file = "#{socket_dir}/engine.sock"
settings.server.socket.path.set(socket_file)
# engine_control = list.assoc(default="localhost:1337", "engine_control_host", ini)
# SOUND CARD SETTINGS
......@@ -114,6 +112,19 @@ print("#########################################################################
print("AURA Engine:Core v#{engine_version} starting ...")
print("######################################################################################")
print("System Settings:")
if lqs_allow_root == "true" then
print("\tAllow Liquidsoap running as root user")
settings.init.allow_root.set(true)
end
if socket_dir != "" then
print("\tSocket location: #{socket_file}")
else
print("\tCRITICAL: No socket directory set!")
end
print("\nFRAME Settings:")
frame_audio_sample_rate = int_of_string(list.assoc(default="", "frame_audio_sample_rate", ini))
frame_duration = float_of_string(list.assoc(default="", "frame_duration", ini))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment