#!/usr/bin/python
import sys
import subprocess
import time
import optparse
import os
import traceback

from zephyr_mirror_backend import parse_args

(options, args) = parse_args()

while True:
    print "Starting zephyr mirroring bot"
    try:
        args = [os.path.join(options.root_path, "user_root", "zephyr_mirror_backend.py")]
        args.extend(sys.argv[1:])
        subprocess.call(args)
    except:
        traceback.print_exc()
    time.sleep(1)

@@ -178,79 +178,8 @@
 ()%0A%0A
-while True:%0A    print %22Starting zephyr mirroring bot%22%0A    try:%0A        
 args
@@ -256,24 +256,16 @@
 d.py%22)%5D%0A
-        
 args.ext
@@ -281,16 +281,154 @@
 rgv%5B1:%5D)
+%0A%0Aif options.sync_subscriptions:%0A    subprocess.call(args)%0A    sys.exit(0)%0A%0Awhile True:%0A    print %22Starting zephyr mirroring bot%22%0A    try:
 %0A       

Fix running --sync-subscriptions repeatedly.