#!/usr/bin/env python
#  -*- mode: python; -*-
#============================================================================
# Copyright (C) 2004 Mike Wray <mike.wray@hp.com>
# Copyright (C) 2005-2006 XenSource Inc
#============================================================================

"""Xen management daemon.
   Provides console server and HTTP management api.

   The daemon should reconnect to device control interfaces
   and recover its state when restarted.
"""
import sys

from xen.xend.server import SrvDaemon

def main():
    daemon = SrvDaemon.instance()
    return daemon.start()

if __name__ == '__main__':
    sys.exit(main())
