From ff2b219abd48d246fb7096d76c7044db7afc2d5d Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 4 Apr 2017 12:39:14 -0700 Subject: [PATCH] root-watcher code --- root-watcher/package.json | 14 ++++++++++++++ root-watcher/zerotier-root-watcher.js | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 root-watcher/package.json create mode 100644 root-watcher/zerotier-root-watcher.js diff --git a/root-watcher/package.json b/root-watcher/package.json new file mode 100644 index 000000000..f6eb680e6 --- /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. ", + "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 000000000..c6ce6be0b --- /dev/null +++ b/root-watcher/zerotier-root-watcher.js @@ -0,0 +1,5 @@ +'use strict'; + +const pg = require('pg'); +const zlib = require('zlib'); +