Skip to content
Browse files

$RINGO_OUT and $RHINO_CLASSPATH logfile should vary on $NAME

first of all: If you only have one "ringojs" instance as installed by
debian package then nothing changes for you.

But if you have multiple ringojs instances with different $NAME then the
$RINGO_OUT logfile will now include that $NAME and the $RHINO_CLASSPATH will
change with $RINGO_HOME (which already included $NAME)
  • Loading branch information...
1 parent 757cdb9 commit bd28b859c2961039507444b7c5f7ca2c869cced3 @oberhamsi oberhamsi committed Nov 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 debian/ringojs-daemon.ringojs.init
View
4 debian/ringojs-daemon.ringojs.init
@@ -29,10 +29,10 @@ DAEMON=/usr/bin/jsvc
RINGO_HOME=/usr/share/$NAME
DEFAULT=/etc/default/$NAME
# direct both stdout and stderr to ringo-out.log
-RINGO_OUT=/var/log/ringojs/ringo-out.log
+RINGO_OUT=/var/log/ringojs/${NAME}-out.log
RINGO_ERR="&1"
# fix for Rhino on bootclasspath in OpenJDK
-RHINO_CLASSPATH=-Xbootclasspath/p:/usr/share/ringojs/lib/js.jar
+RHINO_CLASSPATH=-Xbootclasspath/p:${RINGO_HOME}lib/js.jar
if [ `id -u` -ne 0 ]; then
echo "You need root privileges to run this script"

0 comments on commit bd28b85

Please sign in to comment.
Something went wrong with that request. Please try again.