Well thanks, but I'd prefer monitor-side hook. App-side hook has at least these disadvantages: - the app would have to get root privileges to run jstack - the app might hang so well that even its shutdown hooks won't work.
Besides, I can't see how to distinguish a normal shutdown from a Force Quit — we want jstack in the latter case only. Nevertheless, if there's no other way, it's definitely a way. Thanks! OC > On 23. 10. 2024, at 0:02, Paul Hoadley via Webobjects-dev > <[email protected]> wrote: > > On 22 Oct 2024, at 22:36, OCsite via Webobjects-dev > <[email protected]> wrote: > >> does JavaMonitor support hooks? We would like that whenever someone kills an >> application through Configure / Force Quit, jstack gets called automatically >> before killing the application on its PID, and its output added to the >> application log. Is that possible somehow? > > Will this meet your needs? > > https://jenkins.wocommunity.org/job/Wonder7/lastSuccessfulBuild/javadoc/er/extensions/appserver/ERXShutdownHook.html > > > -- > Paul Hoadley > https://logicsquad.net/ > https://www.linkedin.com/company/logic-squad/ > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ocs%40ocs.cz > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
