Apologies in advance for semi-OT sysadmin question.

Tomcat 8.5.24, running on Centos 6. I have built jsvc according to
instructions in distribution. I have two tomcat instances under
different users (sandbox1, sandbox2) that have their own
CATALINA_BASE. I can start these manually from the command line
without a problem.

How do I set up daemon.sh to run on boot for multiple users? Do I need
to (as root), make a copy of daemon.sh under /etc/init.d for each user
(tc_sandbox1, tc_sandbox2) and edit those to set the environment
variables in it (CATALINA_HOME, CATALINA_BASE, JAVA_HOME,
TOMCAT_USER), then use chkconfig to install the scripts?

This seems kind of clunky to set up. Is this the right way to go about
it or am I making it more complicated than it needs to be?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to