Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 48 lines (38 sloc) 1.711 kb
afbce7e @amitrathore added monitoring for sevaks
authored
1 #!/bin/sh
2
3 # Please make sure to configure ~/.clojure.conf or /etc/clojure.conf
4 # sample configuration can be found at clojure.conf.sample
5 #
6 # Note, running this script will:
7 # - Run ~/.clojurerc on boot up (if exists)
8 # - Add all .jar files within clj_ext (~/.clojure on default)
9 # to the classpath
10 #
11 #
12
13 if [ ! -f /etc/clojure.conf -a ! -f /mnt/furtive/clojure.conf -a ! -f ~/.clojure.conf ]; then
14 echo "Error: No config not found at /etc/clojure.conf or ~/.clojure.conf."
15 echo " Please provide one before starting this script."
16 echo " A sample can be found in the emacs-clojure repository named "
17 echo " clojure.conf.sample"
18 exit
19 fi
20
21
22 # Whether to load the repl or script
23 if [ -z "$1" ]; then
24 clj_class=clojure.lang.Repl
25 else
26 clj_class=clojure.lang.Script
27 fi
28
29 echo "SWARMIJI_HOME is ${SWARMIJI_HOME}"
30 echo "SWARMIJI_ENV is ${SWARMIJI_ENV}"
31
32 swarmiji_jars="${SWARMIJI_HOME}/lib/java"
d0ebffe @amitrathore changed wireformat to use clojure strings, added postal submodule for…
authored
33 swarmiji_clj="${SWARMIJI_HOME}/src/:${SWARMIJI_HOME}/lib/clojure/clj-record/src/:${SWARMIJI_HOME}/lib/clojure/clj-utils/src/:${SWARMIJI_HOME}/lib/clojure/postal/src/clj/"
afbce7e @amitrathore added monitoring for sevaks
authored
34
35 clj_cp="."
36 [ -f /etc/clojure.conf ] && . /etc/clojure.conf
37 [ -f /mnt/furtive/clojure.conf ] && . /mnt/furtive/clojure.conf
38 [ -f ~/.clojure.conf ] && . ~/.clojure.conf
39 [ -f ~/.clojurerc ] && clj_rc=~/.clojurerc
40 clj_cp="${clj_cp}:${swarmiji_jars}/*:${swarmiji_clj}/:${clj_ext}/*"
41
42 if [ -n "${clj_lib}" ]; then
43 export LD_LIBRARY_PATH=${clj_lib}:$LD_LIBRARY_PATH
44 fi
45
46 echo exec java -Xms256m -Xmx512m -server -Dpid=$$ ${clj_opts} -cp ${clj_cp}:${clj} ${clj_wrapper} ${clj_class} ${clj_rc} $*
47 exec java -Xms256m -Xmx512m -server -Dpid=$$ ${clj_opts} -cp ${clj_cp}:${clj} ${clj_wrapper} ${clj_class} ${clj_rc} $1 -- $*
Something went wrong with that request. Please try again.