Refine remote.it operations, now that connectd systemd service is gone, and considering 3 valid states for /etc/remoteit/registration #3395
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
remote.it Device Packages 4.15.2 removed their connectd "parent" systemd service as of 2022-09-07. So instead of bouncing their connectd service, going forward, we'll instead run
/usr/share/remoteit/refresh.sh
which should generally do the exact same thing.This PR aims for a cleaner all-around solution to remote.it frailties.
Recognizing that
/etc/remoteit/config.json
may or may not exist a priori (with or without a claim code) and that/etc/remoteif/registration
can be in any one of 3 states {doesn't exist, is empty to block registration handshake, OR contains a [presumably valid!] remoteit_license_key} ...until remote.it is enabled by either...sudo /usr/bin/iiab-remoteit
Or...
./runrole remoteit
which runsroles/remoteit/tasks/enable-or-disable.yml
(after you setremoteit_enabled: True
in /etc/iiab/local_vars.yml)Needs testing in coming days!
Building on: