1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-12 02:42:48 +00:00
Files
mywebsite/node_modules/forever/test/fixtures/start-daemon.js
2015-06-25 16:28:41 -05:00

17 lines
383 B
JavaScript

/*
* start-daemon.js: Simple test fixture for spawning log-on-interval.js as a daemon
*
* (C) 2010 Charlie Robbins & the Contributors
* MIT LICENCE
*
*/
var path = require('path'),
forever = require('../../lib/forever');
var monitor = forever.startDaemon(path.join(__dirname, 'log-on-interval.js'));
monitor.on('start', function () {
forever.startServer(monitor);
});