CC-2169 : All logging should go to /var/log

pypo-liquidsoap log now in its folder
This commit is contained in:
Naomi 2011-04-14 17:16:50 -04:00
parent d69723f910
commit 379e70ff23
4 changed files with 9 additions and 2 deletions

View File

@ -76,6 +76,10 @@ try:
os.system("chmod -R 755 /var/log/airtime/pypo")
os.system("chown -R pypo:pypo /var/log/airtime/pypo")
create_path("/var/log/airtime/pypo-liquidsoap")
os.system("chmod -R 755 /var/log/airtime/pypo-liquidsoap")
os.system("chown -R pypo:pypo /var/log/airtime/pypo-liquidsoap")
create_path(BASE_PATH)
create_path(BASE_PATH+"bin")
create_path(BASE_PATH+"cache")
@ -112,7 +116,7 @@ try:
create_path("/etc/service/pypo-liquidsoap")
create_path("/etc/service/pypo-liquidsoap/log")
shutil.copy("%s/pypo-daemontools-liquidsoap.sh"%current_script_dir, "/etc/service/pypo-liquidsoap/run")
shutil.copy("%s/pypo-daemontools-logger.sh"%current_script_dir, "/etc/service/pypo-liquidsoap/log/run")
shutil.copy("%s/pypo-liquidsoap-daemontools-logger.sh"%current_script_dir, "/etc/service/pypo-liquidsoap/log/run")
os.system("chmod -R 755 /etc/service/pypo-liquidsoap")
os.system("chown -R pypo:pypo /etc/service/pypo-liquidsoap")

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec setuidgid pypo multilog t /var/log/airtime/pypo-liquidsoap/main

View File

@ -33,6 +33,7 @@ try:
print "Removing log directories"
remove_path("/var/log/airtime/pypo")
remove_path("/var/log/airtime/pypo-liquidsoap")
print "Removing pypo files"
remove_path(BASE_PATH)

View File

@ -7,7 +7,7 @@
# general settings #
###########################################
log_file = "/var/log/pypo/<script>.log"
log_file = "/var/log/airtime/pypo-liquidsoap/<script>.log"
log_level = 3
###########################################