old_contents: import string
  
  template = string.Template("""
  [program:contrail-discovery]
  command=/bin/bash -c "source /opt/contrail/api-venv/bin/activate && exec python /opt/contrail/api-venv/lib/python2.7/site-packages/discovery/disc_server_zk.py --conf_file /etc/contrail/discovery.conf --listen_port $__contrail_disc_port_base__%(process_num)01d --worker_id %(process_num)s"
  numprocs=$__contrail_disc_nworkers__
  process_name=%(process_num)s
  redirect_stderr=true
  stdout_logfile= /var/log/contrail/contrail-discovery-%(process_num)s.log
  stderr_logfile=/dev/null
  priority=430
  autostart=true
  killasgroup=true
  stopsignal=KILL
  """)
  
new_contents: import string
  
  template = string.Template("""
  [program:contrail-discovery]
  command=/bin/bash -c "source /opt/contrail/api-venv/bin/activate && exec python /opt/contrail/api-venv/lib/python2.7/site-packages/discovery/disc_server.py --conf_file /etc/contrail/discovery.conf --listen_port $__contrail_disc_port_base__%(process_num)01d --worker_id %(process_num)s"
  numprocs=$__contrail_disc_nworkers__
  process_name=%(process_num)s
  redirect_stderr=true
  stdout_logfile= /var/log/contrail/contrail-discovery-%(process_num)s.log
  stderr_logfile=/dev/null
  priority=430
  autostart=true
  killasgroup=true
  stopsignal=KILL
  """)
  
subject: switch to cassandra based discovery server