Bash helper file
authorDarren <darren@darrenwhitlen.com>
Sun, 28 Oct 2012 03:29:15 +0000 (03:29 +0000)
committerDarren <darren@darrenwhitlen.com>
Sun, 28 Oct 2012 03:29:15 +0000 (03:29 +0000)
kiwi [new file with mode: 0644]
server/server.js [moved from kiwi.js with 87% similarity]

diff --git a/kiwi b/kiwi
new file mode 100644 (file)
index 0000000..2650252
--- /dev/null
+++ b/kiwi
@@ -0,0 +1,11 @@
+#!/bin/sh
+basedir=`dirname "$0"`
+
+case `uname` in
+    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
+esac
+
+node server/server.js $@
+ret=$?
+
+exit $ret
similarity index 87%
rename from kiwi.js
rename to server/server.js
index 751c27597928b9e159f6952dad73fde8fae781e1..7ba76f3d25b0a48986715be63628fbb22d717ac8 100644 (file)
--- a/kiwi.js
@@ -1,10 +1,10 @@
-var kiwi_app = './server/kiwi.js';\r
+var kiwi_app = './kiwi.js';\r
 \r
 \r
 var daemon = require('daemonize2').setup({\r
     main: kiwi_app,\r
     name: 'kiwiirc',\r
-    pidfile: 'kiwiirc.pid'\r
+    pidfile: '../kiwiirc.pid'\r
 });\r
 \r
 switch (process.argv[2]) {\r