Tons of bugfixes for the installer on Debian

* Still need to get pypo working with sysvinit
* Still need to fix this logger.cfg silliness with pypo and
  media_monitor
This commit is contained in:
Albert Santoni 2015-02-13 11:32:07 -05:00
parent d46f4a52eb
commit bbcd4fbe2e
9 changed files with 79 additions and 21 deletions

18
python_apps/media-monitor/bin/airtime-media-monitor Executable file → Normal file
View file

@ -1,3 +1,17 @@
#!/bin/bash
#!/usr/bin/python
import logging
import locale
import time
import sys
import os
import mm2.mm2 as mm2
from std_err_override import LogWriter
locale.setlocale(locale.LC_ALL, '')
exec python -m media_monitor > /var/log/airtime/media-monitor/py-interpreter.log 2>&1
def run():
global_cfg = '/etc/airtime/airtime.conf'
logging_cfg = os.path.join(os.path.dirname(__file__), 'logging.cfg')
mm2.main( global_cfg, logging_cfg )
run()