Skip to content

Commit

Permalink
[refactor] Move daemon to devDependencies on its way to deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Dec 23, 2011
1 parent 84be160 commit 9ff117d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/forever/service/adapters/systemv/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ var fs = require('fs'),
util = require('util'),
path = require('path'),
spawn = require('child_process').spawn,
daemon = require('daemon'),
dnode = require('dnode'),
forever = require('../../../../forever'),
Adapter = require('../adapter');
Expand Down Expand Up @@ -137,8 +136,11 @@ SystemVAdapter.prototype.run = function run(callback) {

self.service.startServer(function () {
try {
daemon.start(logFile);
daemon.lock(pidFilePath);
//
// TODO: Create a pseudo-daemon to replace this.
//
// daemon.start(logFile);
// daemon.lock(pidFilePath);
self.daemonized = true;
return callback && callback();
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"dependencies": {
"cliff": "0.x.x",
"dnode": "0.8.x",
"daemon": "0.3.x >=0.3.2",
"flatiron": "0.1.x",
"minimatch": "0.0.x",
"nconf": "0.5.x",
Expand All @@ -38,6 +37,7 @@
"winston": "0.5.x"
},
"devDependencies": {
"daemon": "0.3.x >=0.3.2",
"vows": "0.5.x"
},
"bin": {
Expand Down

0 comments on commit 9ff117d

Please sign in to comment.