> Resin OpenSource has a limitation: It only runs as root user
This is not really true.
Resin OSS does not allow to configure the user to run, but you can (a)
run it manually (b) set up the rc.d script to run it from needed user.
For example, it is pretty easy to do in Debian/Ubuntu. I do it this
way (as root):
1. Creating the modified copy of /opt/railo/bin/httpd.sh in /etc/
init.d/caucho
==== start file ====
#! /bin/sh
#
# resin.sh can be called like apachectl
#
# resin.sh -- execs resin in the foreground
# resin.sh start -- starts resin in the background
# resin.sh stop -- stops resin
# resin.sh restart -- restarts resin
#
# resin.sh will return a status code if the wrapper detects an error,
but
# some errors, like bind exceptions or Java errors, are not detected.
#
# chkconfig: 345 86 14
# description: Resin is a Java application server
# processname: java
#
# To install, you'll need to configure JAVA_HOME and RESIN_HOME and
# copy httpd.sh to /etc/rc.d/init.d as resin. Then
# use "unix# /sbin/chkconfig resin on"
#
# trace script and simlinks to find thw wrapper
#
su -l r2d2 -c "exec java -jar /opt/railo/lib/resin.jar $*"
==== end file ====
2. Enabling Railo start on reboot:
cd /etc/init.d/
update-rc.d caucho defaults 51
3. To remove them:
update-rc.d -f caucho remove
-sg
On 30 Лис, 14:05, Ronan Lucio <
ronanlu...@gmail.com> wrote:
> Hi Clint,
>
> 2009/11/16 Clint <
clintmil...@gmail.com>