mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
/use/bin/iiab-remoteit: Safer bounce of services, while deleting config.json
This commit is contained in:
parent
462d39c260
commit
68e1ca955c
1 changed files with 7 additions and 5 deletions
|
@ -34,16 +34,18 @@ if [[ $ans = "y" ]] || [[ $ans = "Y" ]]; then
|
|||
# apt install & enable "latest" remote.it Device Package for your CPU/OS
|
||||
curl -L https://downloads.remote.it/remoteit/install_agent.sh | sh
|
||||
else
|
||||
echo -e "In a few secs, all 3 svcs {connectd, schannel, remoteit@...} should be back!\n"
|
||||
|
||||
systemctl stop connectd # Safer!
|
||||
|
||||
# '|| true' overrides 'bash -e' so script continues if config.json missing
|
||||
mv /etc/remoteit/config.json /etc/remoteit/config.json.$(date +%F_%T_%Z) || true
|
||||
|
||||
echo -e "In just a few seconds, all 3 services should be enabled/started.\n"
|
||||
|
||||
systemctl restart connectd # Claim Code logic + kickstarts 2 svcs below
|
||||
systemctl enable connectd # 2 enable lines, like enable-or-disable.yml
|
||||
systemctl start connectd # Claim Code logic + kickstarts 2 svcs below
|
||||
systemctl enable connectd # 2 enable lines, like enable-or-disable.yml
|
||||
|
||||
# schannel = "Remote tcp command service" started by connectd above if nec
|
||||
systemctl enable schannel # 2 enable lines, like enable-or-disable.yml
|
||||
systemctl enable schannel # 2 enable lines, like enable-or-disable.yml
|
||||
|
||||
# "Remote tcp connection service" appears a few seconds after connectd is
|
||||
# started above. Auto-enabled when spawned by connectd, SO NOT NEC HERE:
|
||||
|
|
Loading…
Add table
Reference in a new issue