mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Refine /usr/bin/iiab-remoteit-off + explanations
This commit is contained in:
parent
bd2ff84ccb
commit
fa3cb5e42b
3 changed files with 7 additions and 4 deletions
|
@ -42,7 +42,7 @@
|
||||||
dest: /usr/bin
|
dest: /usr/bin
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
- name: "Install /usr/bin/iiab-remoteit-off from template -- so IIAB operators can quickly disable remote.it services on this IIAB"
|
- name: "Install /usr/bin/iiab-remoteit-off from template -- so IIAB operators can quickly turn off AND disable remote.it services on this IIAB"
|
||||||
template:
|
template:
|
||||||
src: iiab-remoteit-off
|
src: iiab-remoteit-off
|
||||||
dest: /usr/bin
|
dest: /usr/bin
|
||||||
|
|
|
@ -14,6 +14,9 @@ else
|
||||||
echo "remoteit_enabled: False" >> /etc/iiab/local_vars.yml
|
echo "remoteit_enabled: False" >> /etc/iiab/local_vars.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 3 sections below should be equivalent to -- and much faster than:
|
||||||
|
# https://github.com/iiab/iiab/tree/master/roles/remoteit/tasks/enable-or-disable.yml
|
||||||
|
|
||||||
# remote.it "parent" service
|
# remote.it "parent" service
|
||||||
systemctl stop connectd
|
systemctl stop connectd
|
||||||
systemctl disable connectd
|
systemctl disable connectd
|
||||||
|
@ -23,7 +26,7 @@ systemctl stop schannel
|
||||||
systemctl disable schannel
|
systemctl disable schannel
|
||||||
|
|
||||||
# "Remote tcp connection service"
|
# "Remote tcp connection service"
|
||||||
systemctl stop $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@)
|
systemctl stop $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@) || true
|
||||||
systemctl disable $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@)
|
systemctl disable $(ls /etc/systemd/system/multi-user.target.wants/ | grep remoteit@) || true
|
||||||
# Its systemd service name (e.g. remoteit@80:00:01:7F:7E:00:56:36.service)
|
# Its systemd service name (e.g. remoteit@80:00:01:7F:7E:00:56:36.service)
|
||||||
# changes when a new claim code is generated!
|
# changes when a new claim code is generated!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue