         server_id = undefined
         project = undefined
         state = 'error'
+        dbg = (m) -> winston.debug("GlobalProject.get_local_state(#{@project_id}): #{m}")
         async.series([
             (cb) =>
                 @get_location_pref (err, s) =>

    if not program.address  # useless
        program.address = '127.0.0.1'

main = () ->
    if program.debug
        winston.remove(winston.transports.Console)


ZPOOL = if process.env.BUP_POOL? then process.env.BUP_POOL else 'bup'

#console.log("ZPOOL=",ZPOOL)
CONF = "/bup/conf"
fs.exists CONF, (exists) ->
    if exists
