[jira] [Created] (DAEMON-339) Patch for commons-daemon 1.0.15 to avoid shutdown failures
John Wehle created DAEMON-339: - Summary: Patch for commons-daemon 1.0.15 to avoid shutdown failures Key: DAEMON-339 URL: https://issues.apache.org/jira/browse/DAEMON-339 Project: Commons Daemon Issue Type: Bug Components: Jsvc Affects Versions: 1.0.15 Environment: Multiple UNIX platforms ... E.g.: Red Hat ES 6 Solaris 10 x64 Reporter: John Wehle Priority: Minor We've seen situations on UNIX where JSVC will fail to shutdown when requested ... in at least one case this caused the machine to hang during shutdown. On UNIX JSVC automatically restarts the JVM if it crashes. Currently this means that if the JVM crashes after receiving a shutdown request (i.e. a SIGINT), then it's restarted by the controller which is not what's desired. The enclosed patch propagates the termination request from the JVM to the controller so that the controller knows not to schedule a restart thus allowing JSVC to actually terminate. Granted this doesn't fix the underlying problem of the JVM crashing during shutdown, however that's a separate (potentially application specific) issue. Tested by using a dummy JAVA service containing an endless loop in the shutdown code. Test sequence was: jsvc ... -verbose -debug hello.MyDaemon kill -INT `cat pidfile` # notice that output showed shutdown running kill -BUS `cat pidfile` # notice that prior to patch output showed restart being scheduled -- John Wehle -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (DAEMON-339) Patch for commons-daemon 1.0.15 to avoid shutdown failures
[ https://issues.apache.org/jira/browse/DAEMON-339?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Wehle updated DAEMON-339: -- Attachment: jsvc-shutdown.txt Patch for the problem. > Patch for commons-daemon 1.0.15 to avoid shutdown failures > -- > > Key: DAEMON-339 > URL: https://issues.apache.org/jira/browse/DAEMON-339 > Project: Commons Daemon > Issue Type: Bug > Components: Jsvc >Affects Versions: 1.0.15 > Environment: Multiple UNIX platforms ... E.g.: > Red Hat ES 6 > Solaris 10 x64 >Reporter: John Wehle >Priority: Minor > Attachments: jsvc-shutdown.txt > > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > We've seen situations on UNIX where JSVC will fail to shutdown when > requested ... in at least one case this caused the machine to hang > during shutdown. > On UNIX JSVC automatically restarts the JVM if it crashes. Currently > this means that if the JVM crashes after receiving a shutdown request > (i.e. a SIGINT), then it's restarted by the controller which is not > what's desired. > The enclosed patch propagates the termination request from the JVM to > the controller so that the controller knows not to schedule a restart > thus allowing JSVC to actually terminate. > Granted this doesn't fix the underlying problem of the JVM crashing > during shutdown, however that's a separate (potentially application > specific) issue. > Tested by using a dummy JAVA service containing an endless loop in > the shutdown code. Test sequence was: > jsvc ... -verbose -debug hello.MyDaemon > kill -INT `cat pidfile` > # notice that output showed shutdown running > kill -BUS `cat pidfile` > # notice that prior to patch output showed restart being scheduled > -- John Wehle -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (DAEMON-310) jsvc fails on AIX 5.3
John Wehle created DAEMON-310: - Summary: jsvc fails on AIX 5.3 Key: DAEMON-310 URL: https://issues.apache.org/jira/browse/DAEMON-310 Project: Commons Daemon Issue Type: Bug Components: Jsvc Affects Versions: 1.0.15 Environment: IBM AIX 5.3 powerpc Java 6 Reporter: John Wehle jsvc fails to find / start up the java virtual machine. The attached patch resolves the issue. -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Updated] (DAEMON-310) jsvc fails on AIX 5.3
[ https://issues.apache.org/jira/browse/DAEMON-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Wehle updated DAEMON-310: -- Attachment: jsvc-aix.txt Patch for issue. jsvc fails on AIX 5.3 - Key: DAEMON-310 URL: https://issues.apache.org/jira/browse/DAEMON-310 Project: Commons Daemon Issue Type: Bug Components: Jsvc Affects Versions: 1.0.15 Environment: IBM AIX 5.3 powerpc Java 6 Reporter: John Wehle Labels: patch Attachments: jsvc-aix.txt Original Estimate: 1m Remaining Estimate: 1m jsvc fails to find / start up the java virtual machine. The attached patch resolves the issue. -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Commented] (DAEMON-310) jsvc fails on AIX 5.3
[ https://issues.apache.org/jira/browse/DAEMON-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13833297#comment-13833297 ] John Wehle commented on DAEMON-310: --- In addition to the patch it is also necessary to do: LIBPATH=${JAVA_HOME}/jre/lib/ppc:${JAVA_HOME}/jre/lib/ppc/classic export LIBPATH before invoking jsvc. jsvc fails on AIX 5.3 - Key: DAEMON-310 URL: https://issues.apache.org/jira/browse/DAEMON-310 Project: Commons Daemon Issue Type: Bug Components: Jsvc Affects Versions: 1.0.15 Environment: IBM AIX 5.3 powerpc Java 6 Reporter: John Wehle Labels: patch Attachments: jsvc-aix.txt Original Estimate: 1m Remaining Estimate: 1m jsvc fails to find / start up the java virtual machine. The attached patch resolves the issue. -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Commented] (DAEMON-310) jsvc fails on AIX 5.3
[ https://issues.apache.org/jira/browse/DAEMON-310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13833298#comment-13833298 ] John Wehle commented on DAEMON-310: --- Okay ... I'm not quite sure why my libpath comment has extra line breaks. Hopefully you'll get the idea. jsvc fails on AIX 5.3 - Key: DAEMON-310 URL: https://issues.apache.org/jira/browse/DAEMON-310 Project: Commons Daemon Issue Type: Bug Components: Jsvc Affects Versions: 1.0.15 Environment: IBM AIX 5.3 powerpc Java 6 Reporter: John Wehle Labels: patch Attachments: jsvc-aix.txt Original Estimate: 1m Remaining Estimate: 1m jsvc fails to find / start up the java virtual machine. The attached patch resolves the issue. -- This message was sent by Atlassian JIRA (v6.1#6144)