Interface of Main class changed. more info at https://bugzilla.redhat.com/show_bug.cgi?id=918110
Created attachment 705599 [details] patch for static start-methods In case start method has private default constructor creating the instance will fail. Patch makes sure that newInstance is not invoked for static methods because it is ignored anyhow by Java spec.
Created attachment 705600 [details] daemon 1.0.13 with applied patch
Upstream JIRA: https://issues.apache.org/jira/browse/DAEMON-283
jakarta-commons-daemon-1.0.13-1.redhat_1.ep6.el6, apache-commons-daemon-eap6-1.0.13-3.redhat_1.ep6.el6, apache-commons-daemon-eap6-1.0.13-3.redhat_1.ep6.el5 built in Brew to include the fix on RHEL.
Win build: https://brewweb.devel.redhat.com/buildinfo?buildID=260225
Solaris builds: jakarta-commons-daemon/1.0.13/3.sun10/
Top level windows build: jboss-eap-native-utils-6.1.0-4.win6
Top level solaris build: jboss-eap-native-utils/6.1.0/4.sun10/
Fixes shall be available in EAP 6.1.0.ER3
Please set correct Target Milestone and Target Release.
Fixed - thanks for the reminder. I am still fighting a little bit with Bugzilla :)
We all :-) ... Thank you.
RHEL, Solaris version is OK. We are waiting for feedback from development to verify Windows version.
On Windows failed, but fixies are in progress and awaited in the next build.
Fixed in: jakarta-commons-daemon-1.0.15-1.win6
1. Windows build works, but common-daemon log contains errors (after stopping the service): ------------------------------------------------------------------------------ [2013-04-22 07:04:58] [info] [ 6076] Commons Daemon procrun (1.0.15.0 32-bit) started [2013-04-22 07:04:58] [info] [ 6076] Service EAP61SVC name JBoss Enterprise Application Server 6.1 [2013-04-22 07:04:59] [info] [ 6076] Service 'EAP61SVC' installed [2013-04-22 07:04:59] [info] [ 6076] Commons Daemon procrun finished [2013-04-22 07:04:59] [info] [ 2632] Commons Daemon procrun (1.0.15.0 32-bit) started [2013-04-22 07:04:59] [info] [ 2632] Updating service... [2013-04-22 07:04:59] [info] [ 2632] Service 'EAP61SVC' updated [2013-04-22 07:04:59] [info] [ 2632] Update service finished. [2013-04-22 07:04:59] [info] [ 2632] Commons Daemon procrun finished [2013-04-22 07:06:01] [info] [ 2496] Commons Daemon procrun (1.0.15.0 32-bit) started [2013-04-22 07:06:01] [info] [ 2496] Running 'EAP61SVC' Service... [2013-04-22 07:06:01] [info] [ 4376] Starting service... [2013-04-22 07:06:03] [info] [ 4376] Service started in 1713 ms. [2013-04-22 07:06:43] [info] [ 5820] Stopping service... [2013-04-22 07:06:44] [error] [ 5984] Failed to set service status [2013-04-22 07:06:44] [error] [ 5984] The handle is invalid. ------------------------------------------------------------------------------ 2. Prunsrv.exe is not part of 64b natives package. 3. It would be nice, if files "service.bat" and "service.conf.bat" would be part of sbin directory as prunsrv.exe (see attachment). Mladen, do you agree?
Created attachment 738558 [details] service.bat - service handling script
Created attachment 738559 [details] service.conf.bat - service handling script
Mladen, could you please provide info to comment18:1 Vaclav, could you please provide info to comment18:2,3 Thank you very much.
I am waiting for Mladen to confirm this.
(In reply to comment #18) > 1. Windows build works, but common-daemon log contains errors (after > stopping the service): > [2013-04-22 07:06:43] [info] [ 5820] Stopping service... > [2013-04-22 07:06:44] [error] [ 5984] Failed to set service status > [2013-04-22 07:06:44] [error] [ 5984] The handle is invalid. > ----------------------------------------------------------------------------- This is probably a bug. File an upstream JIRA inside Commons Daemon, and I'll see how to fix it. Does the service stops? > > 2. Prunsrv.exe is not part of 64b natives package. > It should be.
Mladen, thanks for the info. Yes, the service stops. Upstream JIRA was created: https://issues.apache.org/jira/browse/DAEMON-296
(In reply to comment #24) > Mladen, > thanks for the info. > Yes, the service stops. Upstream JIRA was created: > https://issues.apache.org/jira/browse/DAEMON-296 OK, since it stops it's a minor issue. Can you please turn debug logging and attach it to JIRA issue. Just the part after 'Stopping service...'
After setting logging level to Debug, behaviour was changed a little. net stop EAP61SVC returns: --------------------------------------------------------------------------- The JBoss Enterprise Application Server 6.1 service is stopping. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly. The JBoss Enterprise Application Server 6.1 service was stopped successfully. --------------------------------------------------------------------------- And log contains ------------------------------------------------------------------------------------------ [2013-04-30 07:32:50] [debug] ( prunsrv.c:844 ) [ 2028] reportServiceStatusE: 4, 0, 0, 0 [2013-04-30 07:32:50] [debug] ( prunsrv.c:1528) [ 2028] Waiting for worker to finish... [2013-04-30 07:32:50] [debug] ( prunsrv.c:1533) [ 2028] Worker finished. [2013-04-30 07:32:50] [debug] ( prunsrv.c:1559) [ 2028] Waiting for all threads to exit [2013-04-30 07:32:52] [debug] ( prunsrv.c:844 ) [ 5504] reportServiceStatusE: 4, 0, 0, 0 [2013-04-30 07:33:17] [debug] ( prunsrv.c:844 ) [ 5504] reportServiceStatusE: 3, 0, 3000, 0 [2013-04-30 07:33:17] [info] ( prunsrv.c:943 ) [ 5548] Stopping service... [2013-04-30 07:33:17] [debug] ( javajni.c:941 ) [ 4904] Java Worker thread started java/lang/System:exit [2013-04-30 07:33:18] [debug] ( prunsrv.c:844 ) [ 5548] reportServiceStatusE: 3, 0, 20000, 0 [2013-04-30 07:33:18] [debug] ( javajni.c:471 ) [ 5276] Exit hook with exit code 0 [2013-04-30 07:33:18] ------------------------------------------------------------------------------------------
There are still followings productization issues. 1. prunsrv.exe is missing for 64b windows version. 2. service.bat and service.conf.bat was not added into sbin direcotory Verified with EAP ER6.
Dev (minor) issue mentioned in comment 26 still manifests. But whole process works (instaling, starting, stopping, removing service). Verified with EAP ER6.
The prunsrv.exe was not picked by Brew in the last build, fixed for ER7 in: jakarta-commons-daemon-1.0.15-4.win6
Dev (minor) issue mentioned in comment 26 still manifests. But whole process works (instaling, starting, stopping, removing service). Relavant upsteram JIRA could be found on: https://issues.apache.org/jira/browse/DAEMON-296 Verified with EAP ER8.
Mladen, any updates with https://issues.apache.org/jira/browse/DAEMON-296 ?
I'll be sorting various Commons Daemon issues this and next week and make new release afterwards. So work in progress :)
I just want to point out that we need a documentation addition so we have any bases to test jsvc. Without documentation to know the supported use case for this binary we also don't know what to test of it.