http://translate.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/selfhosting/surveillance/index.html
systemctl start motion
systemctl status motion
counter=0 #dont start motion more than once, until mainpc goes active
sleep 10
else
sleep 3
fi
fi
done For both scripts, you need a systemd service to launch them, and also do not let motion start at bootup, as it will be handled by monitor_mainpc.sh [ 10.0.0.223/16 ] [ /dev/pts/3 ] [~]
→ systemctl disable motion
[...