Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2152

Return unique exit codes on Java startup or shutdown errors

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Java gateway (J)
    • Environment:
      This would affect all operating systems

      Description

      Currently when using startup.sh and shutdown.sh for the Java Gateway, there is no way to programmatically distinguish between the different error scenarios. This makes it difficult to write wrapper scripts around the current scripts, such as an init.d scripts.

      If instead of always returning 1 on error, we could return anything not zero, with each different cause having their own exit code, it would make it very easy to write scripts that can start and stop the java gateway without having to do matches on string output. Sample patch is attached.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bunjiboys Asbjorn Kjaer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: