 
   app.get "/-/presence/:service", (req, res) ->
     {service} = req.params
-<<<<<<< HEAD
-    if services[service] and services[service].count > 0
-=======
     if services[service] and services[service] > 0
->>>>>>> 266a942989a69815ecc3f8d07f98bc203827ae01
       res.send 200
     else
       res.send 404

      middlewareTimeout : 5000
    librato: KONFIG.librato

<<<<<<< HEAD
  # Services (order is important here)
  services =
    kite_webterm:
      pattern: 'webterm'
    worker_auth:
      pattern: 'auth'
    kite_sharedhosting:
      pattern: 'kite-sharedHosting'
    kite_applications:
      pattern: 'kite-application'
    kite_databases:
      pattern: 'kite-application'
    webserver:
      pattern: 'web'
    worker_social:
      pattern: 'social'
    
  incService = (serviceKey, inc) ->
    for key, value of services
      if serviceKey.indexOf(value.pattern) > -1
        value.count = if value.count then value.count += inc else 1
        break
=======
  # Services
  services = 
    webserver: 0
    worker_auth: 0

    kite_sharedhosting: 0
    kite_databases: 0
    kite_applications: 0

  # Presences
  koding = require './bongo'
  koding.connect ->
    koding.monitorPresence
      join: (serviceKey) ->
        if serviceKey.indexOf('webterm') > -1
          services.kite_webterm++
        else if serviceKey.indexOf('auth') > -1
