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

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.2.1
    • Java gateway (J)
    • This would affect all operating systems

      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.

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

              Created:
              Updated: