Silence the setting up of the socket.

This was appearing whenever you started a new tty.js terminal - leaking stuff that shouldn't really be.
This commit is contained in:
Pagan Gazzard 2014-08-19 17:46:38 +01:00 committed by Pablo Carranza Vélez
parent c1b1aba985
commit 33441c74e7

View File

@ -1,3 +1,4 @@
#!/bin/bash
SOCKET_NAME=test-${1}-${2}-${3}
HOST_DATA_PATH=/resin-data/resin-supervisor
HOST_SOCKET=${HOST_DATA_PATH}/${SOCKET_NAME}
@ -7,5 +8,5 @@ echo "
rm -f ${HOST_SOCKET}
socat UNIX-LISTEN:${HOST_SOCKET} EXEC:'${HOST_DATA_PATH}/enter.sh ${1}',pty,setsid,setpgid,stderr,ctty &
exit
" | socat UNIX:${SUPERVISOR_SOCKET_PATH}/host -
" | socat UNIX:${SUPERVISOR_SOCKET_PATH}/host - >& /dev/null
socat UNIX:${SUPERVISOR_SOCKET_PATH}/${SOCKET_NAME} -,raw,echo=0