From f74d73b77d730f365885e678ff5980144f731105 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 28 Oct 2012 03:29:15 +0000 Subject: [PATCH] Bash helper file --- kiwi | 11 +++++++++++ kiwi.js => server/server.js | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 kiwi rename kiwi.js => server/server.js (87%) diff --git a/kiwi b/kiwi new file mode 100644 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 diff --git a/kiwi.js b/server/server.js similarity index 87% rename from kiwi.js rename to server/server.js index 751c275..7ba76f3 100644 --- a/kiwi.js +++ b/server/server.js @@ -1,10 +1,10 @@ -var kiwi_app = './server/kiwi.js'; +var kiwi_app = './kiwi.js'; var daemon = require('daemonize2').setup({ main: kiwi_app, name: 'kiwiirc', - pidfile: 'kiwiirc.pid' + pidfile: '../kiwiirc.pid' }); switch (process.argv[2]) { -- 2.25.1