Permalink
Browse files

Rebranding to daemon-tools.

  • Loading branch information...
DanBUK committed Jan 23, 2011
1 parent 69657d8 commit db1ebbd7107ea410fd3769f22f0bc3d7222f0d98
Showing with 16 additions and 20 deletions.
  1. +2 −0 .npmignore
  2. +1 −1 daemon.cc
  3. +5 −5 example.js
  4. +4 −10 package.json
  5. +2 −2 test_chroot.js
  6. +2 −2 wscript
View
@@ -0,0 +1,2 @@
+.gitignore
+.git
View
@@ -1,5 +1,5 @@
/*
-* Daemon.node
+* daemon-tools.node
*** A node.JS addon that allows creating Unix/Linux Daemons in pure Javascript.
*** Copyright 2010 (c) <arthur@norgic.com>
* Under MIT License. See LICENSE file.
View
@@ -1,8 +1,8 @@
try {
- var daemon = require('build/default/daemon');
+ var daemon-tools = require('build/default/daemon-tools');
} catch (e) {
try {
- var daemon = require('daemon');
+ var daemon-tools = require('daemon-tools');
} catch (e) {
console.log("Have you actually built the module yet?");
console.log("eg. node-waf configure build install");
@@ -38,9 +38,9 @@ switch(args[2]) {
break;
case "start":
- dPID = daemon.start(false);
- daemon.lock(config.lockFile);
- daemon.closeIO(fs.openSync('/dev/null', 'w'));
+ dPID = daemon-tools.start(false);
+ daemon-tools.lock(config.lockFile);
+ daemon-tools.closeIO(fs.openSync('/dev/null', 'w'));
break;
default:
View
@@ -1,8 +1,8 @@
{
- "name": "daemon",
+ "name": "daemon-tools",
"description": "Add-on for creating *nix daemons, handling chroots, etc.",
"homepage": "https://github.com/DanBUK/node-daemon",
- "version": "0.2.0",
+ "version": "0.1.0",
"maintainers": [
{
"name": "Daniel Bartlett",
@@ -39,20 +39,14 @@
"engines": {
"node": ">=0.2.5"
},
- "_id": "daemon@0.2.0",
+ "_id": "daemon-tools@0.1.0",
"_nodeSupported": true,
"_npmVersion": "0.2.15",
"_nodeVersion": "v0.2.5",
"dist": {
"shasum": "",
- "tarball": "http://registry.npmjs.org/mysql-libmysqlclient/-/mysql-libmysqlclient-1.1.1.tgz"
- },
- "directories": {
- ""
+ "tarball": ""
},
"_engineSupported": true,
- "files": [
- ""
- ],
"_defaultsLoaded": true
}
View
@@ -4,13 +4,13 @@ var test_folder = "./chroot";
var sys = require('sys');
var fs = require('fs');
-var daemon = require('./build/default/daemon');
+var daemon-tools = require('./build/default/daemon-tools');
fs.readdir("./", function (err, files) {
sys.puts('Current directory: ' + process.cwd());
sys.puts('err: ' + sys.inspect(err));
sys.puts('files: ' + sys.inspect(files));
- daemon.chroot(test_folder);
+ daemon-tools.chroot(test_folder);
fs.readdir("./", function (err, files) {
sys.puts('Current directory: ' + process.cwd());
sys.puts('err: ' + sys.inspect(err));
View
@@ -11,5 +11,5 @@ def configure(conf):
def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
- obj.target = "daemon"
- obj.source = "daemon.cc"
+ obj.target = "daemon-tools"
+ obj.source = "daemon.cc"

0 comments on commit db1ebbd

Please sign in to comment.