[
https://issues.apache.org/jira/browse/DAEMON-122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mladen Turk closed DAEMON-122.
------------------------------
Resolution: Invalid
JIRA is not support forum.
You would need a shutdown system similar to tomcat's 'catalina stop'
which will by using some form of RPC cleanly shutdown your application.
> Procrun prevents proper JVM shutdown
> ------------------------------------
>
> Key: DAEMON-122
> URL: https://issues.apache.org/jira/browse/DAEMON-122
> Project: Commons Daemon
> Issue Type: Bug
> Affects Versions: 1.0.1
> Environment: JRE 1.6.0_11, MS Windows XP
> Reporter: Trev
>
> When my program is stopped by procrun, its log files (created by
> java.util.logging.FileHandler) are never properly closed. I tried using
> Runtime.addShutdownHook, but the hook never had a chance to run. It's as if
> procrun were using Runtime.halt, rather than System.exit, to terminate the
> JVM. I could invoke System.exit myself, to do a proper shutdown, but... then
> I would run into [DAEMON-103|http://issues.apache.org/jira/browse/DAEMON-103].
> I'm using Procrun version 2.0.4.0 (which is included as tomcat6.exe, in
> tomcat 6.0.18) with StartMode and StopMode both set to jvm.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.