Uploaded image for project: 'JBoss Core Services'
  1. JBoss Core Services
  2. JBCS-957

JBoss Service.bat stop fails with an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • httpd 2.4.37.SP10 GA
    • None
    • jsvc
    • None
    • Release Notes
    • ?
    • Hide

      use net stop <service_name> or Window's service dialog GUI instead.

      Show
      use net stop <service_name> or Window's service dialog GUI instead.
      • Successfully set up EAP 7.3.0 window's service using jsvc 1.1.0.
      • service.bat stop /name <service_name> to stop the service

      • Successfully set up EAP 7.3.0 window's service using jsvc 1.1.0.
      • net stop <service_name> works fine
      • JBoss service stops fine via Window's service dialog too
      • but when use service.bat stop /name <service_name>, there is an error from prunsrv.exe:
      • cmd output:

      Service "JBossEAP7HC" stopping...
      ERROR: Failed to load service "JBossEAP7HC" configuration

      • service log:
        [2020-05-13 12:45:46] [info] ( prunsrv.c:728 ) [ 3420] Stopping service 'JBossEAP7HC' ...
        [2020-05-13 12:45:46] [debug] ( prunsrv.c:885 ) [ 3412] reportServiceStatusE: dwCurrentState = 3, dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0
        [2020-05-13 12:45:46] [info] ( prunsrv.c:984 ) [ 3344] Stopping service...
        [2020-05-13 12:45:46] [debug] (rprocess.c:517 ) [ 3344] Apache Commons Daemon apxProcessExecute()
        [2020-05-13 12:45:46] [debug] (rprocess.c:258 ) [ 3344] Commons Daemon procrun __apxProcCreateChildPipes()
        [2020-05-13 12:45:46] [debug] (rprocess.c:533 ) [ 3344] Apache Commons Daemon AplZeroMemory()
        [2020-05-13 12:45:46] [debug] (rprocess.c:548 ) [ 3344] Apache Commons Daemon GetEnvironmentStringsW()
        [2020-05-13 12:45:46] [debug] (rprocess.c:570 ) [ 3344] Apache Commons Daemon CreateProcessW()
        [2020-05-13 12:45:46] [debug] (rprocess.c:592 ) [ 3344] Apache Commons Daemon CreateThread()
        [2020-05-13 12:45:46] [debug] (rprocess.c:595 ) [ 3344] Apache Commons Daemon CreateThread()
        [2020-05-13 12:45:46] [debug] (rprocess.c:598 ) [ 3344] Apache Commons Daemon ResumeThread()
        [2020-05-13 12:45:46] [debug] (rprocess.c:600 ) [ 3344] Apache Commons Daemon CreateThread()
        [2020-05-13 12:45:46] [debug] (rprocess.c:606 ) [ 3344] Apache Commons Daemon apxProcessExecute() returning TRUE
        [2020-05-13 12:45:46] [debug] ( prunsrv.c:1105) [ 3344] Waiting for stop worker to finish...
        [2020-05-13 12:45:50] [debug] ( service.c:507 ) [ 3420] apxServiceControl(): Sleeping 1000 milliseconds
        [2020-05-13 12:45:51] [debug] ( service.c:511 ) [ 3420] apxServiceControl(): QueryServiceStatus OK
        [2020-05-13 12:45:51] [error] ( service.c:520 ) [ 3420] apxServiceControl(): dwState(1) != dwCurrentState(3); dwWin32ExitCode = 0, dwWaitHint = 3000, dwServiceSpecificExitCode = 0
        [2020-05-13 12:45:51] [error] ( service.c:534 ) [ 3420] apxServiceControl(): returning FALSE
        [2020-05-13 12:45:51] [error] ( prunsrv.c:749 ) [ 3420] Failed to stop 'JBossEAP7HC' service
        [2020-05-13 12:45:51] [info] ( prunsrv.c:757 ) [ 3420] Stop service finished.
        [2020-05-13 12:45:51] [error] ( prunsrv.c:1805) [ 3420] Commons Daemon procrun failed with exit value: 6 (Failed to stop service)
        [2020-05-13 12:45:52] [debug] (rprocess.c:122 ) [ 3464] Child process exit code 0

      But the service is shutdown successfully. I think there is a bug in prunsrv.exe.

              rhn-engineering-jclere Jean-Frederic Clere
              rhn-support-leiyu Lei Yu (Inactive)
              Paul Lodge Paul Lodge
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: