TODO: Reorganize this repo like docker-socat
cd ~
curl https://raw.githubusercontent.com/sejnub/docker-autossh/master/scripts/coldstart.sh | bash
See https://bitbucket.org/sejnub/setup/src/master/smarthome/ports.txt
Stop container if one of the processes has stopped. This might be a solution if I want multiple active udp tcp brdges.
-
Exaple from docker
-
Example from some forum
#!/bin/bash
/usr/bin/stunnel4 /stunnel.conf &
/usr/local/bin/redis-server /etc/redis/redis.conf &
wait -n
kill %1 %2
echo "All process finished"