CC-2169 : All logging should go to /var/log
moving pypo/recorder logs to folder /var/log/airtime
This commit is contained in:
parent
6899dca0a3
commit
e5f2e8d044
6 changed files with 10 additions and 10 deletions
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec setuidgid pypo multilog t ./main
|
||||
exec setuidgid pypo multilog t /var/log/airtime/pypo/main
|
||||
|
|
|
@ -72,9 +72,9 @@ try:
|
|||
create_user("pypo")
|
||||
|
||||
print "Creating log directories"
|
||||
create_path("/var/log/pypo")
|
||||
os.system("chmod -R 755 /var/log/pypo")
|
||||
os.system("chown -R pypo:pypo /var/log/pypo")
|
||||
create_path("/var/log/airtime/pypo")
|
||||
os.system("chmod -R 755 /var/log/airtime/pypo")
|
||||
os.system("chown -R pypo:pypo /var/log/airtime/pypo")
|
||||
|
||||
create_path(BASE_PATH)
|
||||
create_path(BASE_PATH+"bin")
|
||||
|
|
|
@ -32,7 +32,7 @@ try:
|
|||
os.system("python %s/pypo-stop.py" % get_current_script_dir())
|
||||
|
||||
print "Removing log directories"
|
||||
remove_path("/var/log/pypo")
|
||||
remove_path("/var/log/airtime/pypo")
|
||||
|
||||
print "Removing pypo files"
|
||||
remove_path(BASE_PATH)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec setuidgid pypo multilog t ./main
|
||||
exec setuidgid pypo multilog t /var/log/airtime/recorder/main
|
||||
|
|
|
@ -80,9 +80,9 @@ try:
|
|||
os.system("chown -R pypo:pypo /home/pypo/Music")
|
||||
|
||||
print "Creating log directories"
|
||||
create_path("/var/log/recorder")
|
||||
os.system("chmod -R 755 /var/log/recorder")
|
||||
os.system("chown -R pypo:pypo /var/log/recorder")
|
||||
create_path("/var/log/airtime/recorder")
|
||||
os.system("chmod -R 755 /var/log/airtime/recorder")
|
||||
os.system("chown -R pypo:pypo /var/log/airtime/recorder")
|
||||
|
||||
create_path(BASE_PATH)
|
||||
create_path(BASE_PATH+"bin")
|
||||
|
|
|
@ -32,7 +32,7 @@ try:
|
|||
os.system("python %s/recorder-stop.py" % get_current_script_dir())
|
||||
|
||||
print "Removing log directories"
|
||||
remove_path("/var/log/recorder")
|
||||
remove_path("/var/log/airtime/recorder")
|
||||
|
||||
print "Removing recorder files"
|
||||
remove_path(BASE_PATH)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue