balena-supervisor/tools/dind/config/services/resin-supervisor-host-socket.service

18 lines
517 B
Desktop File

[Unit]
Description=Host socket for resin supervisor
Requires=resin-supervisor.service
After=resin-supervisor.service
[Service]
Restart=always
ExecStartPre=-/bin/rm -f /resin-data/resin-supervisor/host
ExecStart=/bin/bash -c ' \
while true; do \
rm -f /resin-data/resin-supervisor/host; \
socat UNIX-LISTEN:/resin-data/resin-supervisor/host EXEC:/bin/bash,pty,setsid,setpgid,stderr,ctty; \
done'
ExecStopPost=-/bin/rm -f /resin-data/resin-supervisor/host
[Install]
WantedBy=multi-user.target