Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-935

JobScheduler does not end with an exit_code > 0 if -configuration-directory is not present

    XMLWordPrintable

Details

    Description

      If the directory specified with commmand line option -configuration-directory is not present JobScheduler will end with exit code 0 anyway:

      bash -x jobscheduler.sh start
      
      + /bin/sh -c '"/usr/scheduler/scheduler-64bit-beta/bin/scheduler"   -service "-id=scheduler-64bit-beta" "-sos.ini=/usr/scheduler/scheduler-64bit-beta/config/sos.ini" "-ini=/usr/scheduler/scheduler-64bit-beta/config/factory.ini" "-config=/usr/scheduler/scheduler-64bit-beta/config/scheduler.xml" "-configuration-directory=/usr/scheduler/scheduler-64bit-beta/config/dummy" "-param=/usr/scheduler/scheduler-64bit-beta" "-cd=/usr/scheduler/scheduler-64bit-beta" "-include-path=/usr/scheduler/scheduler-64bit-beta" "-log-dir=/usr/scheduler/scheduler-64bit-beta/logs" "-pid-file=/usr/scheduler/scheduler-64bit-beta/logs/scheduler.pid" '
      + SCHEDULER_EXIT=0
      + remember_status
      + '[' 0 -eq 1 ']'
      + echo
      
      + '[' 0 -eq 1 ']'
      + exit 0
      [jenkins@localhost bin]$ Error ERRNO-2  No such file or directory [stat] [/usr/scheduler/scheduler-64bit-beta/config/dummy]
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      #  SIGSEGV (0xb) at pc=0x00007f8fce35ae06, pid=21924, tid=140255614916352
      #
      # JRE version: 7.0_04-b20
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (23.0-b21 mixed mode linux-amd64 compressed oops)
      # Problematic frame:
      # C  [libjobscheduler-engine.so+0x19be06]  sos::scheduler::Spooler::state_dom_element(zschimmer::xml::Document_ptr const&, sos::scheduler::Show_what const&)+0xa36
      #
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # An error report file with more information is saved as:
      # /usr/scheduler/scheduler-64bit-beta/hs_err_pid21924.log
      #
      # If you would like to submit a bug report, please visit:
      #   http://bugreport.sun.com/bugreport/crash.jsp
      #
      

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ss Stefan Schädlich (Inactive)
              Mahendra Patidar Mahendra Patidar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: