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

Bill, Hans,

On 7/24/20 09:42, Bill Stewart wrote:
> On Fri, Jul 24, 2020 at 2:26 AM Hans Schou wrote:
>
> "document" manually? Like copy&paste into a text file?
>>
>
> Yes, however you customarily do so.

Note that everything you can configure using tomcatXw.exe //ES/svcname
you can also install from the command-line. So if you need to create a
service from scratch, you just need to make sure you provide all those
values each time you create a new service.

If you find yourself needing to make changes to the system properties,
for example, then instead of editing them directly using //ES/svcname,
you could also put that into a script and re-run the script.

You get (a) documentation of what's necessary and also (b)
reproducibility of creating that service, instead of having to
remember that something specific was in there.

For example, if you need to set -Duser.locale=fr_FR for your service,
then do:

REM
REM Script to install Apache Tomcat service for Foo Tech Ltd.
REM

SET SERVICE_NAME=MyGreatWebapp
SET SERVICE_DESC=My Great Web App
SET HEAP_MIN=1024
SET HEAP_MAX=1024

%CATALINA_HOME%\bin\tomcat9w.exe ^
  "//IS//%SERVICE_NAME%" ^
  --Description "%SERVICE_DESC%" ^
  --JvmMs "%HEAP_MIN%" ^
  --JvmMx "%HEAP_MAX%" ^
  --JvmOptions "-Xrs;-Duser.locale=fr_FR"

I typed that in without any checks to make sure it will work. But you
get the idea.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl8a/58ACgkQHPApP6U8
pFhpGw/+Oqv0W+SQbApHWHbr4043U0sJsJewGAUS/et4EnAPDFpzIj/xceqffMwc
6wIWhk65w6oKilP/jDZCzhUbF0Oxzr16/38dzjvYHNdFrC3isLetZEMIXDu6410s
gOH3C1I0GCtQHTUWo9NvVIFRkTJxWc0QpTuLccVvyAjm5mwfhqrhLuaPR+lTSs80
darql64xNR3n79tGgDgr0UCYFuL6upcGxcUH2GuTU9xy2pLi1Y3aLYifNRKz2hp7
tBo0/irqO52ZstMLJvqA7bAduoYR/Hl65WS6TMLT9BW1YYjGsYo5NVRibUR/Ab+R
SYHM/P6+m//dzyp3c3VaBxpeuIPTKrF/b/eO5cuMKiQD0G8Q3OU4tq7WneXPZ730
f008+RbAmuQLiNjso7li6dklEaEhYMNtg9jtP6yADw7RGRc8cB7tH14CDLCxKHpr
rqya8OvZhybLxx2q3ujJbNPTNTjy6/bdIulr5vPFzsclJjpaHbji6wpQiBZ/lZ3r
aAZ78UMvAO33FkmDZKoWIF1KpVuEBJ16wU1eNGFU9SikI1Zcx7GkFTvC5fBkx0qu
6IEpTzb3j6ktLJWqZvF1OSs66coMNjv48PnDX61EvZR19f2WVGIVSIQRDJ+qmNnU
3SFKjwAbEmuH9lX+tfqhRtaaMhDCW5wMoY/E9c+JIywBI+ELlcg=
=u415
-----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