2012-10-02 14:09:24 -04:00
|
|
|
#!/usr/bin/python
|
|
|
|
import sys
|
|
|
|
import subprocess
|
2012-11-19 12:04:23 -05:00
|
|
|
import time
|
2012-10-02 14:09:24 -04:00
|
|
|
import optparse
|
|
|
|
import os
|
2012-11-19 12:04:23 -05:00
|
|
|
import traceback
|
2012-10-29 18:09:51 -04:00
|
|
|
|
2012-11-19 12:04:23 -05:00
|
|
|
from zephyr_mirror_backend import parse_args
|
2012-10-11 16:20:38 -04:00
|
|
|
|
2012-11-19 12:04:23 -05:00
|
|
|
(options, args) = parse_args()
|
2012-10-11 16:20:38 -04:00
|
|
|
|
2012-11-19 12:04:23 -05:00
|
|
|
while True:
|
|
|
|
print "Starting zephyr mirroring bot"
|
2012-11-13 16:30:39 -05:00
|
|
|
try:
|
2012-11-19 12:04:23 -05:00
|
|
|
args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
|
|
|
|
args.extend(sys.argv[1:])
|
|
|
|
subprocess.call(args)
|
2012-11-13 16:30:39 -05:00
|
|
|
except:
|
2012-11-19 12:04:23 -05:00
|
|
|
traceback.print_exc()
|
|
|
|
time.sleep(1)
|