Hi,=20it=20would=20be=20nice=20if=20one=20could=20start=20a=20script=20in=20=
response=20to=20triggers,=20i.e.
wrapper.filter.trigger.1=3Dtrigger=20string
wrapper.filter.action.1=3DEXEC
wrapper.filter.exechandler=3D/my/special/handling.sh
This=20would=20then=20start=20the=20"exechandler"=20command=20with=20two=20=
parameters:
=201.=20The=20index=20of=20the=20trigger=20("1")
=201.=20The=20FULL=20log=20line=20that=20triggered=20the=20action.
The=20return=20value=20of=20the=20script=20determines=20further=20action:
=200=20=3D=3D=20NONE
=201=20=3D=3D=20RESTART
=202=20=3D=3D=20SHUTDOWN
Use=20case=20is=20for=20example=20a=20clustered=20Tomcat=20installation,=20=
where=20failure=20of=20one=20JVM=20might=20require=20restart=20actions=20f=
or=20
the=20other=20JVMs=20too=20(or=20delaying=20of=20the=20restart=20for=20thi=
s=20
JVM,=20when=20the=20partner=20JVM=20is=20currently=20not=20available).
Also,=20you=20could=20do=20things=20like=20active=20notification=20of=20
restarts=20via=20SNMP=20etc.
Ciao,=20J=FCrgen
--
J=FCrgen=20Hermann,=20Developer
WEB.DE=20AG,=20http://webde-ag.de/
|