blob: e6448e85cef889ccf8b8348e1d3d00d661db735a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python
# -*- mode: python -*-
import argparse
from eventmq.log import setup_logger
from eventmq import conf
from eventmq.router import Router
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description='Route job messages to their appropriate queues')
parser.add_argument('--config', '-C', type=str, nargs='?',
help='manually specify the location of eventmq.conf')
args = parser.parse_args()
if args.config:
conf.CONFIG_FILE = args.config
r = Router()
r.router_main()
|