4 ## usage wiki.sh {start|stop|debug}
7 ## These point to where
8 ## The the wiki code and database is store
9 ## WIKI = path to the wiki ebin
10 ## PICO = path to the pico ebin
11 ## STORE = path to the wiki store
14 # These paths are set up to work from a checked out jungerl source tree.
15 # Run this script with jungerl/lib/wiki/ as current directory.
20 ERL
=/usr
/local
/bin
/erl
22 export HEART_COMMAND
="$WIKI/wiki.sh start"
26 ${ERL} -boot start_sasl -sname wiki001 -pa ${WIKI} -pa ${PICO} \
27 -s wiki start
${PORT} ${STORE} -heart -detached
32 # if a second parameter is given, give it to -sname option
33 ${ERL} ${2:+-sname $2} -pa ${WIKI} -pa ${PICO} -s wiki start ${PORT} ${STORE}
37 ${ERL} -noshell -sname wiki_stopper -pa ${WIKI} -pa ${PICO} \
38 -s wiki stop wiki001@
`hostname`
43 echo "Usage: $0 {start|stop|debug}"