[
http://jira.codehaus.org/browse/CONTINUUM-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brett Porter closed CONTINUUM-1603.
-----------------------------------
Resolution: Won't Fix
superceded by new wrapper in 1.2
> Continuum as a linux service and "run as user" issue
> ----------------------------------------------------
>
> Key: CONTINUUM-1603
> URL: http://jira.codehaus.org/browse/CONTINUUM-1603
> Project: Continuum
> Issue Type: Bug
> Components: Environmental
> Affects Versions: 1.1
> Environment: Linux (Debian)
> Reporter: Nicolas Rougé
> Priority: Minor
>
> 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 :
> {quote}exec su - $RUN_AS_USER -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD
> $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE"{quote}
> with :
> {quote}exec su -s /bin/sh -c "cd $TGTPATH; exec $CMDNICE $WRAPPER_CMD
> $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE" -
> $RUN_AS_USER{quote}
> and :
> {quote}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"{quote}
> with :
> {quote}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{quote}
> * the environment variable TOOLS_JAR is unknown by the wrapper. I added :
> {quote}export TOOLS_JAR="$JAVA_HOME/lib/tools.jar"{quote}
> at the end of the ~/.bash_profile file of the continuum user, but I don't
> think it's the best solution.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira