docs: def main():
      """Start persister."""
  
      config.parse_args()
  
      # Add processors for metrics topic
      if cfg.CONF.kafka_metrics.enabled:
          prepare_processes(cfg.CONF.kafka_metrics,
                            cfg.CONF.repositories.metrics_driver)
      # Add processors for alarm history topic
      if cfg.CONF.kafka_alarm_history.enabled:
          prepare_processes(cfg.CONF.kafka_alarm_history,
                            cfg.CONF.repositories.alarm_state_history_driver)
      # Add processors for events topic
      if cfg.CONF.kafka_events.enabled:
          prepare_processes(cfg.CONF.kafka_events,
                            cfg.CONF.repositories.events_driver)
  
      # Start
      try:
          LOG.info('''
  
                 _____
                /     \   ____   ____ _____    ______ ____ _____
               /  \ /  \ /  _ \ /    \\\__  \  /  ___// ___\\\__  \\
              /    Y    (  <_> )   |  \/ __ \_\___ \\  \___ / __  \\_
              \____|__  /\____/|___|  (____  /____  >\___  >____  /
                      \/            \/     \/     \/     \/     \/
              __________                    .__          __
              \______   \ ___________  _____|__| _______/  |_  ___________
               |     ___// __ \_  __ \/  ___/  |/  ___/\   __\/ __ \_  __ \\
               |    |   \  ___/|  | \/\___ \|  |\___ \  |  | \  ___/|  | \/
               |____|    \___  >__|  /____  >__/____  > |__|  \___  >__|
                             \/           \/        \/            \/
  
          ''')
          for process in processors:
              process.start()
  
          # The signal handlers must be added after the processes start otherwise
          # they run on all processes
          signal.signal(signal.SIGCHLD, clean_exit)
          signal.signal(signal.SIGINT, clean_exit)
          signal.signal(signal.SIGTERM, clean_exit)
  
          while True:
              time.sleep(10)
  
      except Exception:
          LOG.exception('Error! Exiting.')
          clean_exit(signal.SIGKILL)