1/* 2 * start-daemon.js: Simple test fixture for spawning log-on-interval.js as a daemon 3 * 4 * (C) 2010 Nodejitsu Inc. 5 * MIT LICENCE 6 * 7 */ 8 9var path = require('path'), 10 forever = require('../../lib/forever'); 11 12var monitor = forever.startDaemon(path.join(__dirname, 'log-on-interval.js')); 13 14monitor.on('start', function () { 15 forever.startServer(monitor); 16}); 17 18