diff --git a/bin/wetty.conf b/bin/wetty.conf new file mode 100644 index 0000000..85a624a --- /dev/null +++ b/bin/wetty.conf @@ -0,0 +1,25 @@ +# cat /etc/init/transloaditapi2.conf +# http://upstart.ubuntu.com/wiki/Stanzas + +description "Transloadit.com node.js API 2" +author "kvz" + +stop on shutdown +respawn +respawn limit 20 5 + +# Max open files are @ 1024 by default. Bit few. +limit nofile 32768 32768 + +script + set -e + mkfifo /tmp/api2-log-fifo + ( logger -t api2 /tmp/api2-log-fifo + rm /tmp/api2-log-fifo + exec sudo -u www-data MASTERKEY=`cat /transloadit/keys/masterkey` /transloadit/bin/server 2>&1 +end script + +post-start script + /transloadit/bin/notify.sh 'API2 Just started' +end script diff --git a/bin/wetty.js b/bin/wetty.js new file mode 100644 index 0000000..16e2dea --- /dev/null +++ b/bin/wetty.js @@ -0,0 +1,3 @@ +#!/usr/bin/env node + +require("../app"); diff --git a/package.json b/package.json index 7ae305d..36ad19d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wetty", - "version": "0.0.8", + "version": "0.0.9", "dependencies": { "express": "3.5.1", "websocket": "", diff --git a/public/index.html b/public/index.html index 00281a9..72f8d7e 100644 --- a/public/index.html +++ b/public/index.html @@ -5,7 +5,6 @@ Wetty - The WebTTY Terminal Emulator -