summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--root-watcher/package.json14
-rw-r--r--root-watcher/zerotier-root-watcher.js5
2 files changed, 19 insertions, 0 deletions
diff --git a/root-watcher/package.json b/root-watcher/package.json
new file mode 100644
index 00000000..f6eb680e
--- /dev/null
+++ b/root-watcher/package.json
@@ -0,0 +1,14 @@
+{
+ "name": "zerotier-root-watcher",
+ "version": "1.0.0",
+ "description": "Simple background service to watch a cluster of roots and record peer info into a database",
+ "main": "zerotier-root-watcher.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1"
+ },
+ "author": "ZeroTier, Inc. <contact@zerotier.com>",
+ "license": "GPL-3.0",
+ "dependencies": {
+ "pg": "^6.1.5"
+ }
+}
diff --git a/root-watcher/zerotier-root-watcher.js b/root-watcher/zerotier-root-watcher.js
new file mode 100644
index 00000000..c6ce6be0
--- /dev/null
+++ b/root-watcher/zerotier-root-watcher.js
@@ -0,0 +1,5 @@
+'use strict';
+
+const pg = require('pg');
+const zlib = require('zlib');
+