-
Notifications
You must be signed in to change notification settings - Fork 60
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
rmfakecloud-proxy: Add status subcommand #513
Conversation
This subcommand reports whether rmfakecloud-proxy is enabled, currently active, and whether the upstream server has been set. If the upstream server is set, it also checks whether it is reachable and a valid rmfakecloud server.
Status command looks good, and it does indeed leave the configuration in place. Unfortunatly upon re-enable it shows me as no longer linked to the cloud. We might need to sort out how to properly clean up the xochitl configuration and reuse the pin. I also noticed that when I tried to disable it got stuck waiting for xochtil to stop until after I entered my pin in Oxide's lockscreen. It might be good to have it detect that the application is in a stopped state, that or just detect that oxide is running and use |
Thanks for testing!
That's a good point. To be on the safe side, I programmed the We could implement something to save credentials for each server you connect to somewhere, and restore them when you switch between servers. But is there such a strong use-case for switching between multiple servers regularly enough that it’s worth implementing this? Also, the way it’s currently implemented, we force a full sync after each server switch, and assume that files on the device should overwrite those on the server. But for users who would switch between multiple servers I’m not sure what strategy would be best in that regard.
It should have force-killed Xochitl after 5 seconds. Could you tell me how to reproduce this so that I can investigate? Thanks! |
It probably did force kill after 5 seconds, it would still be nice if it could attempt to work with the launcher. See #515 (comment) I think this is safe enough to merge for now. We can resolve the other issues later. |
@matteodelabre poke |
Seems good. Thanks for the review! |
* Add `rmfakecloudctl status` subcommand This subcommand reports whether rmfakecloud-proxy is enabled, currently active, and whether the upstream server has been set. If the upstream server is set, it also checks whether it is reachable and a valid rmfakecloud server. * Keep config on uninstall
This PR addresses the points from @Eeems’ review of last PR: #448 (comment)
The new
rmfakecloudctl status
introduced by this PR reports whether rmfakecloud-proxy is enabled, currently active, and whether the upstream server has been set. If the upstream server is set, it also checks whether it is reachable and a valid rmfakecloud server. Here are some possible states that can be shown by the command:Disabled (happens, for example, right after install):
Enabled, but upstream not set:
Enabled, but upstream is unreachable:
Enabled, but upstream does not seem to be an rmfakecloud server:
Enabled and working:
This PR also changes the disable command to not clean up the
/opt/etc/rmfakecloud-proxy/config
file. This fixes the issue where doingrmfakecloudctl set-upstream
, followed by an interruptedrmfakecloudctl enable
, would unset the upstream.