Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.1
-
None
-
None
-
Linux (Debian)
Description
I've installed Continuum 1.1 as a service on my Debian system. I've created the user "continuum", with /bin/false as login shell, and used the "run as user" feature. This doesn't work for two reasons :
- /bin/false is the login shell, so I had to replace, in run.sh :
exec su - $RUN_AS_USER -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE"
with :
exec su -s /bin/sh -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE" - $RUN_AS_USER
and :
exec su - $RUN_AS_USER -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE"
with :
exec su -s /bin/sh -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE" - $RUN_AS_USER
- the environment variable TOOLS_JAR is unknown by the wrapper. I added :
export TOOLS_JAR="$JAVA_HOME/lib/tools.jar"
at the end of the ~/.bash_profile file of the continuum user, but I don't think it's the best solution.