Skip to content

Commit

Permalink
[dist breaking api] Remove forever.service. Fixes #372.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Aug 1, 2014
1 parent 938bf33 commit 5fb6329
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 820 deletions.
4 changes: 0 additions & 4 deletions bin/foreverd

This file was deleted.

19 changes: 6 additions & 13 deletions lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ forever.cli = require('./forever/cli');
//
require('pkginfo')(module, 'version');

//
// Expose the global forever service
//
forever.__defineGetter__('service', function () {
return require('./forever/service');
});

//
// ### function getSockets (sockPath, callback)
// #### @sockPath {string} Path in which to look for UNIX domain sockets
Expand Down Expand Up @@ -196,7 +189,7 @@ function stopOrRestart(action, event, format, target) {
if (err) {
emitter.emit('error', err);
}

emitter.emit(event, forever.format(format, procs));
});
}
Expand Down Expand Up @@ -418,16 +411,16 @@ forever.startDaemon = function (script, options) {
});

monitor.send(JSON.stringify(options));

// close the ipc communication channel with the monitor
// otherwise the corresponding events listeners will prevent
// otherwise the corresponding events listeners will prevent
// the exit of the current process (observed with node 0.11.9)
monitor.disconnect();

// make sure the monitor is unref() and does not prevent the
// exit of the current process
monitor.unref();

return monitor;
};

Expand Down Expand Up @@ -689,7 +682,7 @@ forever.format = function (format, procs) {
columns = forever.config.get('columns'),
rows = [[' '].concat(columns)],
formatted;

function mapColumns(prefix, mapFn) {
return [prefix].concat(columns.map(mapFn));
}
Expand Down
96 changes: 0 additions & 96 deletions lib/forever/service/adapters/adapter.js

This file was deleted.

9 changes: 0 additions & 9 deletions lib/forever/service/adapters/initd/index.js

This file was deleted.

82 changes: 0 additions & 82 deletions lib/forever/service/adapters/systemv/foreverd

This file was deleted.

Loading

0 comments on commit 5fb6329

Please sign in to comment.