             opts.config = path.join(process.cwd(), opts.config)
         # Always reload config for -c argument
         config.merge(opts.config)
+    else if fs.existsSync("/etc/buddycloud-server/config.js")
+        config.merge("/etc/buddycloud-server/config.js")
 
     # Kludge:
     if opts.stdout

# Config
config = require('jsconfig')
version = require('./version')
config.defaults path.join(__dirname,"..","config.js")

process.title = "buddycloud-server #{version}"


    stdout: ['logging.stdout', [off, "Log to stdout"]]
    version: [off, "Display version"]

config.load (args, opts) ->

    if opts.version
        console.log version
