#!/usr/bin/env node

/**
 * @overview karma server
 */

var karma = require('karma'),
    server = karma.server,
    configFile = process.argv[2];

server.start({
    configFile: configFile
}, function () {
    process.send({});
});
process.on('message', function (message) {
    if (message.kill) process.exit();
});
