From 7c71092ac384a90abb215f0d2396b742bcba2304 Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Wed, 25 Nov 2020 09:57:32 -0500 Subject: [PATCH] Custom daemon settings --- secrets.liq | 4 ++++ spradio.liq | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/secrets.liq b/secrets.liq index cf793e1..256b812 100644 --- a/secrets.liq +++ b/secrets.liq @@ -7,6 +7,10 @@ radio_name = '' radio_description = '' radio_genre = '' +# Daemon settings +log_file = '' +pid_file = '' + # This is the file that will play when something catastophic occurs. # Make sure it's an absolute path! fallback_audio = '' diff --git a/spradio.liq b/spradio.liq index 386a922..7dfd6f3 100644 --- a/spradio.liq +++ b/spradio.liq @@ -1,7 +1,14 @@ %include "secrets.liq" +set("init.daemon", true) +set("init.daemon.change_user", true) +set("init.daemon.change_user.group", "liquidsoap") +set("init.daemon.change_user.user", "liquidsoap") +set("init.daemon.pidfile", true) +set("init.daemon.pidfile.path", pid_file) + set("log.file", true) -set("log.file.path", "/home/liquidsoap/spradio.log") +set("log.file.path", log_file) set("log.stdout", true) set("log.level", 4)