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

'fsserver stop' generates apparently extraneous output #80

Open
wehimwich opened this issue Dec 9, 2020 · 2 comments
Open

'fsserver stop' generates apparently extraneous output #80

wehimwich opened this issue Dec 9, 2020 · 2 comments
Labels
cosmetic Doesn't impact functionality

Comments

@wehimwich
Copy link
Member

For example:

{
 "jsonrpc": "2.0",
 "id": "cli-1476363156",
 "result": {}
}
@wehimwich wehimwich added the cosmetic Doesn't impact functionality label Dec 9, 2020
@dehorsley
Copy link
Member

That is a "feature" 😄

All the fsserver cli commands talk to the running server and receive a json response. The "stop/shutdown" procedure doesn't return any results — hence the result field is empty. In principle could error, but it hasn't done so here either so it's all good. If it had, there would be an error field describing what's happened.

Mostly the cli was designed for programmer use, but if we wanted to make it a user facing tool we could unpack the json into a meaningful sentence.

Note the same applies for all fsserver commands (fsserver window open, etc).

@wehimwich
Copy link
Member Author

wehimwich commented Dec 10, 2020

Fair enough. The only reason this came up was that to change the value of an environment variable that the FS uses, it is necessary to restart the server. That is sort of a user land function. This appears to be a consequence of the server now continuing to run after a FS termination. A way to finesse this might be to add a command line option when starting the FS to force a restart of the server if it is already running. That might be also be useful as a way to make sure there is a "complete" restart of the FS or even kill it (if that doesn't leave some dangling processes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmetic Doesn't impact functionality
Projects
None yet
Development

No branches or pull requests

2 participants