zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
114 stars 86 forks source link

Inform users of the need to restart the daemon #1348

Open gejohnston opened 2 years ago

gejohnston commented 2 years ago

When users change some key environment variables (like ZOWE_CLI_HOME, ZOWE_APP_LOG_LEVEL, and ZOWE_IMPERATIVE_LOG_LEVEL) they need to restart the Zowe CLI daemon to get those changes to take effect. When the daemon detects that such environment variables are different from those in use by the daemon process, the daemon should display a message telling the user that (s)he should run a daemon restart command.

zFernand0 commented 1 year ago

There is documentation on Zowe Docs regarding this.

github-actions[bot] commented 1 year ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.

ATorrise commented 4 months ago

Now that the event operator and processor have been created, it would be cool to emit a new event during the post-install script for plug-ins that indicates a new plug-in was installed, notifying other inquiring processes/applications of this change.

Also within this script, we can incorporate a check for daemon mode (since the plug-in will be installed in the same process and we don't need to communicate to another process), and call for an automatic restart of the daemon if user is in daemon-mode that way the user won't have to remember (and possibly need to troubleshoot) to restart their daemon everytime they install a new plug-in.

@adam-wolfe @gejohnston @zFernand0 @t1m0thyj @traeok @awharn