CC-2271 1.8.2 code cleanup tasks
changing 1.8.1 upgrade script to using raw source first.
This commit is contained in:
parent
d6616004a6
commit
b84854c13c
15 changed files with 230 additions and 20 deletions
16
python_apps/media-monitor/airtime-media-monitor-start
Executable file
16
python_apps/media-monitor/airtime-media-monitor-start
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
if os.geteuid() != 0:
|
||||
print "Please run this as root."
|
||||
sys.exit(1)
|
||||
|
||||
try:
|
||||
print "Starting daemontool script recorder"
|
||||
os.system("svc -u /etc/service/recorder")
|
||||
|
||||
except Exception, e:
|
||||
print "exception:" + str(e)
|
Loading…
Add table
Add a link
Reference in a new issue