Runner

The runner class implements an IOLoop IOLoop instance which runs all the onSetup jobs on loading and schedules the onReload functionality accordingly.

By default, the runner loads all the MarcoPoloManager-inherited classes defined in the file managers.py. To include other file, just import it in the runner.py file.

The runner uses standard UNIX signals to reload the system and gracefully stopping all the managers using SIGUSR1 to schedule functionality.

marcopolomanager.runner.log(future)[source]

Gets the result of a future and logs it.

marcopolomanager.runner.main(argv=None)[source]

Starts the daemon and service units. Initializes the runfile and logs and then starts the IOLoop

marcopolomanager.runner.sigterm_handler(signum, frame)[source]

Triggers the onStop event and then stops the IOLoop

marcopolomanager.runner.sigusr1_handler(signum, frame)[source]

Handles the USR1 signal, used for reloading the services