Custom daemon settings
This commit is contained in:
parent
cc871ca5ac
commit
7c71092ac3
2 changed files with 12 additions and 1 deletions
|
@ -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>'
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue