summaryrefslogtreecommitdiff
path: root/community/meteorjs/meteor
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-03 01:12:14 -0800
committerroot <root@rshg054.dnsready.net>2013-02-03 01:12:14 -0800
commite363875b14479aa4c6ff12f3e4e7ed920df4e45f (patch)
treeee217a27b050e82f4fa885a9671f09861fcf97d9 /community/meteorjs/meteor
parent2f5224819ae83de6e9d8de008d5f2dc24769cb0d (diff)
Sun Feb 3 01:12:00 PST 2013
Diffstat (limited to 'community/meteorjs/meteor')
-rw-r--r--community/meteorjs/meteor13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/meteorjs/meteor b/community/meteorjs/meteor
new file mode 100644
index 000000000..252f4afe3
--- /dev/null
+++ b/community/meteorjs/meteor
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ "$(ulimit -n)" != "unlimited" ] ; then
+ ulimit -n 16384 > /dev/null 2>&1 || \
+ ulimit -n 8192 > /dev/null 2>&1 || \
+ ulimit -n 4096 > /dev/null 2>&1 || \
+ ulimit -n 2048 > /dev/null 2>&1 || \
+ ulimit -n 1024 > /dev/null 2>&1 || \
+ ulimit -n 512 > /dev/null 2>&1
+fi
+
+METEORDIR=/usr/lib/meteor
+export NODE_PATH=$METEORDIR/lib/node_modules
+exec /usr/bin/node $METEORDIR/app/meteor/meteor.js "$@"