Custom daemon settings

This commit is contained in:
Josh Washburne 2020-11-25 09:57:32 -05:00
parent cc871ca5ac
commit 7c71092ac3
2 changed files with 12 additions and 1 deletions

View file

@ -7,6 +7,10 @@ radio_name = '<NAME_OF_RADIO_STATION>'
radio_description = '<STANDARD_ISSUE_TAGLINE>' radio_description = '<STANDARD_ISSUE_TAGLINE>'
radio_genre = '<UNFAIRLY_CONSTRAINED_GENRE_TYPE>' radio_genre = '<UNFAIRLY_CONSTRAINED_GENRE_TYPE>'
# Daemon settings
log_file = '<ABSOLUTE_PATH_TO_LOG_FILE>'
pid_file = '<ABSOLUTE_PATH_TO_PID_FILE>'
# This is the file that will play when something catastophic occurs. # This is the file that will play when something catastophic occurs.
# Make sure it's an absolute path! # Make sure it's an absolute path!
fallback_audio = '<ABSOLUTE_PATH_TO_BACKUP_AUDIO_FILE>' fallback_audio = '<ABSOLUTE_PATH_TO_BACKUP_AUDIO_FILE>'

View file

@ -1,7 +1,14 @@
%include "secrets.liq" %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", true)
set("log.file.path", "/home/liquidsoap/spradio.log") set("log.file.path", log_file)
set("log.stdout", true) set("log.stdout", true)
set("log.level", 4) set("log.level", 4)