#!/usr/bin/env python

from mcapi.mcapp import app, mcdb_connect
from mcapi import utils, access
from mcapi import objects, cache
from mcapi.user import account, usergroups, projects
from mcapi.globus import globus_service
from os import environ
import optparse
import signal
from mcapi import apikeydb

_HOST = environ.get('MC_SERVICE_HOST') or 'localhost'


def reload_users(signum, frame):
    apikeydb.reset()
    access.reset()


if __name__ == '__main__':
    parser = optparse.OptionParser()
    parser.add_option("-p", "--port", dest="port",
                      help="Port to run on", default=5000)
    (options, args) = parser.parse_args()
    signal.signal(signal.SIGHUP, reload_users)
    conn = mcdb_connect()
    # cache.load_project_tree_cache(conn)
    app.run(debug=True, host=_HOST, port=int(options.port), processes=5)

#!/usr/bin/env python

from mcapi.mcapp import app, mcdb_connect
from mcapi import utils, access
from mcapi import objects, cache
from mcapi.user import account, usergroups, projects
from os import environ
import optparse
import signal
from mcapi import apikeydb

_HOST = environ.get('MC_SERVICE_HOST') or 'localhost'


def reload_users(signum, frame):
    apikeydb.reset()
    access.reset()


if __name__ == '__main__':
    parser = optparse.OptionParser()
    parser.add_option("-p", "--port", dest="port",
                      help="Port to run on", default=5000)
    (options, args) = parser.parse_args()
    signal.signal(signal.SIGHUP, reload_users)
    conn = mcdb_connect()
    # cache.load_project_tree_cache(conn)
    app.run(debug=True, host=_HOST, port=int(options.port), processes=5)

Remove globus interface from mcapi - now in its own server
Remove globus interface from mcapi - now in its own server
