'use strict';

module.exports = function * start (options) {

    console.info();
    console.info('Starting monitor server...'.cyan);

    options = {
        noDaemon: options.no_daemon,
        pidPath: options.pid
    };

    var pid = yield this.modules.monitor.commands.start(options);

    if (pid) {
        console.info();
        console.info('Running (PID: '.green + String(pid).green +')'.green);
        console.info();
    }

}