#!/usr/bin/env python3
# Copyright (c) 2007 Arastra, Inc.  All rights reserved.
# Arastra, Inc. Confidential and Proprietary.

import Tac, Agent, SuperServer # pylint: disable=import-self
import os

def main():
   # Disable Pulse for SuperServer, as we don't want each SuperServerPlugin
   # instance to create redundant Pulse tables
   os.environ[ "NOPULSE" ] = "1"

   #enable epoll
   Tac.activityManager.useEpoll = True
   
   container = Agent.AgentContainer( [ SuperServer.SuperServer ] )
   container.addOption( "--service", action="append", dest="services",
                        help="Plugins to the SuperServer to run",
                        agentClass=SuperServer.SuperServer )
   container.runAgents()

if __name__ == "__main__":
   main()
