Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launcher error codes outdated #71

Open
1000TurquoisePogs opened this issue Mar 22, 2023 · 3 comments
Open

Launcher error codes outdated #71

1000TurquoisePogs opened this issue Mar 22, 2023 · 3 comments
Assignees

Comments

@1000TurquoisePogs
Copy link
Member

https://docs.zowe.org/stable/troubleshoot/launcher/launcher-error-codes needs updating

@Martin-Zeithaml
Copy link
Contributor

Either use some existing generator for automatic documentation or we can simply read something like this (just an idea):

...
#define MSG_COMP_STARTED        MSG_PREFIX "0001I" " component %s started\n"
//@Reason: Component `<component-name>` started.
//@Action:
#define MSG_COMP_STOPPED        MSG_PREFIX "0002I" " component %s stopped\n"
//@Reason: Component `<component-name>` stopped.
//@Action:
#define MSG_COMP_INITED         MSG_PREFIX "0003I" " new component initialized %s, restart_cnt=%d, min_uptime=%d seconds, share_as=%s\n"
//@Reason: Component `<component-name>` initialized.
//  - `restart_cnt` - Number of attempts to restart the component in case of failure
//  - `min_uptime` - Minimum uptime that the component can be considered as successfully started
//  - `share_as` - One of `<yes|no|must>` which indicates whether child processes of the component start in the same address space. See documentation for [_BPX_SHAREAS](https://www.ibm.com/docs/en/zos/2.4.0?topic=shell-setting-bpx-shareas-bpx-spawn-script) for details.
//@Action:
#define MSG_COMP_TERMINATED     MSG_PREFIX "0004I" " component %s(%d) terminated, status = %d\n"
//@Reason:  Component `<component-name>`(`<pid>`) terminated with status `<code>`.
//@Action:
#define MSG_NEXT_RESTART        MSG_PREFIX "0005I" " next attempt to restart component %s in %d seconds\n"
//@Reason: Component failure detected.
//@Action: No action required. The component `<component-name>` will be restarted in `<n>` seconds.
...

@Martin-Zeithaml Martin-Zeithaml self-assigned this Jul 21, 2023
@Martin-Zeithaml
Copy link
Contributor

I will (at least) start with documentation 😃

@Martin-Zeithaml
Copy link
Contributor

Martin-Zeithaml commented Aug 15, 2023

There is a PR3057 for this, but:

  • There are still some missing messages
  • Review of new text is needed
  • Please, any update make here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants