-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Christian,

On 7/30/13 5:58 AM, Christian Schneider wrote:
> could someone point me to a good source how to use [bin/daemon.sh
> with ubuntu and Tomcat 7]?

The script can be used directly. Maybe you can clarify your question?

> The internet is full of selfmade /etc/init.d/ scripts, but mostly
> it isn't used it as a real service (jsvc). Keyword:
> bin/*daemon.sh* Even the books "Apache Tomcat 7" and "Tomcat 7
> Essentials" are not talking about it.
> 
> On the docs I've found this [0]:
> 
> cd $CATALINA_HOME/bin tar xvfz commons-daemon-native.tar.gz cd
> commons-daemon-1.0.x-native-src/unix ./configure make cp jsvc
> ../.. cd ../..

Good, you've built jsvc.

> But what about: * set env. variables (maybe: catalina.sh?,
> /etc/profiles?) * adjust the heap size * logging to the right
> directory (like: /var/log/tomcat/...) * specifying the User:
> "tomcat"

The script is fairly readable, though less-well documented than
bin/catalina.sh. Most of the environment variables recognized by
bin/catalina.sh are also recognized by bin/daemon.sh. For instance:

CATALINA_HOME
CATALINA_BASE
CATALINA_OPTS
CATALINA_PID
CATALINA_OUT
CATALINA_TMP (note: catalina.sh uses CATALINA_TMPDIR)
JAVA_ENDORSED_DIRS
JAVA_HOME
JAVA_OPTS
TOMCAT_USER

It also accepts these (undocumented, other than by reading the script
itself) command-line arguments with fairly obvious behavior:

    --java-home
    --catalina-home
    --catalina-base
    --catalina-pid
    --tomcat-user
    --service-start-wait-time (sets the "wait" time for jsvc)

Feel free to log an enhancement request for documenting daemon.sh: it
really should be documented as well as catalina.sh is (e.g. with
comments at the top of the script).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJR988tAAoJEBzwKT+lPKRYmCAQAL38IlpgYTFPTPyKX/p4HycH
4OtbpzBHsK3o/rB4gRfjjm7ClWIt36WEPv2Wrceo+fBXHI5dC7V+2IA+BGp4leux
iUIHeVRGR+FFoqLWr+iDmUs0v9dSZtB2tAffbL437iA7V5cdc7sPkbCVuHxjw+tU
O6VOUbfxYGSyFg0B4POcyyH+sDC804Jz6Uu7PnWO9OyeQLHGB9MMbYwUoH/DEW+r
YAMsECgmhi8yrlHxz6Zj38QdyAZtMnuxeoVSuo2r/CDfIyXtdHF4xR21H6W8jV6c
mRCYRduJkBx/JPvP1X9batfofGgOBPqZ2JKeUcIu68Hjn9mLfCm9QXKpELesMSKp
lZkc9HxqeFV7PJjAyYxtMsYLhj0fVHBOzY6GSfPSF5DZwjHNUCeDttObHvmY4PEn
V0FjcZYDAcGwFoni+IZ0eEHqq3wL7AwZ2FJm0ohkdqfmdly7gaOIHGnFxs/hk+yw
LeXlKp9qRZeJDIfcnehtNvHwyFqUeFCODXPYe0tUYP6SoPWCVnt+XjiXk4utNYx3
o87tmC4KCt04EGu77sE3nBXb5ED0fXBiYb3LVNP6PpEsF1KhWjI3L2N6aEUZ8Zmm
K5UvwQsqKjuL994ZFMr7rWeXbUk65/j4SrjmRd0VkFSb8yVyWFA8bTs5HLzsIGSp
NMBXhS570Bw/eohCf3G2
=i2WL
-----END PGP SIGNATURE-----

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

Reply via email to