germqtt.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:germqtt 作者: openstack-infra 项目源码 文件源码
def main():
    args = get_options()
    config = ConfigParser.ConfigParser()
    config.read(args.conffile)

    if config.has_option('default', 'pidfile'):
        pid_fn = os.path.expanduser(config.get('default', 'pidfile'))
    else:
        pid_fn = '/var/run/germqtt.pid'

    if args.foreground:
        _main(args, config)
    else:
        pid = pid_file_module.TimeoutPIDLockFile(pid_fn, 10)
        with daemon.DaemonContext(pidfile=pid):
            _main(args, config)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号